aboutsummaryrefslogtreecommitdiff
path: root/miscutils/watchdog.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/watchdog.c')
-rw-r--r--miscutils/watchdog.c4
1 files changed, 2 insertions, 2 deletions
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)
26int watchdog_main(int argc, char **argv) 26int watchdog_main(int argc, char **argv)
27{ 27{
28 unsigned opts; 28 unsigned opts;
29 unsigned long timer_duration = 30; /* Userspace timer duration, in seconds */ 29 unsigned timer_duration = 30; /* Userspace timer duration, in seconds */
30 char *t_arg; 30 char *t_arg;
31 31
32 opts = getopt32(argc, argv, "Ft:", &t_arg); 32 opts = getopt32(argc, argv, "Ft:", &t_arg);
33 33
34 if (opts & OPT_TIMER) 34 if (opts & OPT_TIMER)
35 timer_duration = bb_xgetlarg(t_arg, 10, 0, INT_MAX); 35 timer_duration = xatou(t_arg);
36 36
37 /* We're only interested in the watchdog device .. */ 37 /* We're only interested in the watchdog device .. */
38 if (optind < argc - 1 || argc == 1) 38 if (optind < argc - 1 || argc == 1)