diff options
author | Shea Levy <shea@shealevy.com> | 2016-07-29T12·05-0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2016-11-10T16·09-0500 |
commit | bff3ad767ec21b37f291a2c4ae0eac7d91470ce5 (patch) | |
tree | 8a941cc148a29c2f34b5936b788012fd277ca017 /src/build-remote | |
parent | 167d12b02cc8cadfaf7c28959532030d65687a8f (diff) |
build-remote: replace strtoull with stoull to take advantage of C++ error handling
Diffstat (limited to 'src/build-remote')
-rw-r--r-- | src/build-remote/build-remote.cc | 4 |
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"); |