aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2016-07-29 08:05:36 -0400
committerShea Levy <shea@shealevy.com>2016-11-10 11:09:15 -0500
commitbff3ad767ec21b37f291a2c4ae0eac7d91470ce5 (patch)
tree8a941cc148a29c2f34b5936b788012fd277ca017 /src
parent167d12b02cc8cadfaf7c28959532030d65687a8f (diff)
build-remote: replace strtoull with stoull to take advantage of C++ error handling
Diffstat (limited to 'src')
-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 03bbe68b2..82e5bb225 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");