aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-respawn.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-respawn.c')
-rw-r--r--src/mds-respawn.c2
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. */