mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Name the protocol version types
This makes the code clearer, and will help us replace them with proper structs and get rid of the macros later.
This commit is contained in:
parent
e92cac789f
commit
ff68426095
6 changed files with 22 additions and 8 deletions
|
@ -818,7 +818,7 @@ static void opServe(Strings opFlags, Strings opArgs)
|
|||
if (magic != SERVE_MAGIC_1) throw Error("protocol mismatch");
|
||||
out << SERVE_MAGIC_2 << SERVE_PROTOCOL_VERSION;
|
||||
out.flush();
|
||||
unsigned int clientVersion = readInt(in);
|
||||
ServeProto::Version clientVersion = readInt(in);
|
||||
|
||||
ServeProto::ReadConn rconn { .from = in };
|
||||
ServeProto::WriteConn wconn { .to = out };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue