aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-respawn.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-12 15:39:39 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-12 15:39:39 +0200
commit856c92de0cfccee39750fda1d04d410fdb06bbe2 (patch)
tree43b2ec983835e15d6c785687fcbd75c27a45d988 /src/mds-respawn.c
parentmissed explicit cast (diff)
downloadmds-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.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. */