From bff3ad767ec21b37f291a2c4ae0eac7d91470ce5 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Fri, 29 Jul 2016 08:05:36 -0400 Subject: [PATCH] build-remote: replace strtoull with stoull to take advantage of C++ error handling --- src/build-remote/build-remote.cc | 4 ++-- 1 file 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");