about summary refs log tree commit diff
path: root/src/nix/doctor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/doctor.cc')
-rw-r--r--src/nix/doctor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/doctor.cc b/src/nix/doctor.cc
index b608b9d59efa..1ce3efcb0415 100644
--- a/src/nix/doctor.cc
+++ b/src/nix/doctor.cc
@@ -91,7 +91,7 @@ struct CmdDoctor : StoreCommand
 
     void checkStoreProtocol(unsigned int storeProto)
     {
-        auto clientProto = GET_PROTOCOL_MAJOR(SERVE_PROTOCOL_VERSION) == GET_PROTOCOL_MAJOR(storeProto)
+        unsigned int clientProto = GET_PROTOCOL_MAJOR(SERVE_PROTOCOL_VERSION) == GET_PROTOCOL_MAJOR(storeProto)
             ? SERVE_PROTOCOL_VERSION
             : PROTOCOL_VERSION;