Skip to content

Commit 5dd21d1

Browse files
committed
build-remote: replace strtoull with stoull to take advantage of C++ error handling
1 parent bd5d153 commit 5dd21d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/build-remote/build-remote.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ int main (int argc, char * * argv)
139139
auto store = openStore();
140140

141141
auto localSystem = argv[1];
142-
settings.maxSilentTime = strtoull(argv[2], NULL, 10);
143-
settings.buildTimeout = strtoull(argv[3], NULL, 10);
142+
settings.maxSilentTime = stoull(string(argv[2]));
143+
settings.buildTimeout = stoull(string(argv[3]));
144144

145145
currentLoad = getEnv("NIX_CURRENT_LOAD", "/run/nix/current-load");
146146

0 commit comments

Comments
 (0)