diff options
Diffstat (limited to '')
-rw-r--r-- | src/mds-respawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mds-respawn.c b/src/mds-respawn.c index ebe8411..02b466c 100644 --- a/src/mds-respawn.c +++ b/src/mds-respawn.c @@ -105,7 +105,7 @@ int parse_cmdline(void) { char* arg = argv[i]; if (startswith(arg, "--alarm=")) /* Schedule an alarm signal for forced abort. */ - alarm((unsigned)min(atoi(arg + strlen("--alarm=")), 60)); /* At most 1 minute. */ + alarm((unsigned)min(atou(arg + strlen("--alarm=")), 60)); /* At most 1 minute. */ else if (startswith(arg, "--interval=")) interval = min(atoi(arg + strlen("--interval=")), 60); /* At most 1 minute. */ else if (strequals(arg, "--re-exec")) /* Re-exec state-marshal. */ |