From 1385899416a4396385ad421ae1f532be7103738a Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 8 Oct 2006 12:49:22 +0000 Subject: attempt to regularize atoi mess. --- miscutils/watchdog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'miscutils/watchdog.c') diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index ae51aba7b..e342c13f3 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c @@ -26,13 +26,13 @@ static void watchdog_shutdown(int ATTRIBUTE_UNUSED unused) int watchdog_main(int argc, char **argv) { unsigned opts; - unsigned long timer_duration = 30; /* Userspace timer duration, in seconds */ + unsigned timer_duration = 30; /* Userspace timer duration, in seconds */ char *t_arg; opts = getopt32(argc, argv, "Ft:", &t_arg); if (opts & OPT_TIMER) - timer_duration = bb_xgetlarg(t_arg, 10, 0, INT_MAX); + timer_duration = xatou(t_arg); /* We're only interested in the watchdog device .. */ if (optind < argc - 1 || argc == 1) -- cgit v1.2.3