diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-12 15:39:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-12 15:39:39 +0200 |
commit | 856c92de0cfccee39750fda1d04d410fdb06bbe2 (patch) | |
tree | 43b2ec983835e15d6c785687fcbd75c27a45d988 /src/mds-respawn.c | |
parent | missed explicit cast (diff) | |
download | mds-856c92de0cfccee39750fda1d04d410fdb06bbe2.tar.gz mds-856c92de0cfccee39750fda1d04d410fdb06bbe2.tar.bz2 mds-856c92de0cfccee39750fda1d04d410fdb06bbe2.tar.xz |
macros for ato* with cast
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-respawn.c')
-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. */ |