about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/build-remote/build-remote.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build-remote/build-remote.cc b/src/build-remote/build-remote.cc
index 03bbe68b2aa2..82e5bb225d2c 100644
--- a/src/build-remote/build-remote.cc
+++ b/src/build-remote/build-remote.cc
@@ -139,8 +139,8 @@ int main (int argc, char * * argv)
         auto store = openStore();
 
         auto localSystem = argv[1];
-        settings.maxSilentTime = strtoull(argv[2], NULL, 10);
-        settings.buildTimeout = strtoull(argv[3], NULL, 10);
+        settings.maxSilentTime = stoull(string(argv[2]));
+        settings.buildTimeout = stoull(string(argv[3]));
 
         currentLoad = getEnv("NIX_CURRENT_LOAD", "/run/nix/current-load");