diff options
Diffstat (limited to 'miscutils/watchdog.c')
-rw-r--r-- | miscutils/watchdog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index ae51aba..e342c13 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) |