diff options
author | Sami Kerola | 2011-07-26 00:04:34 +0200 |
---|---|---|
committer | Sami Kerola | 2011-07-26 18:15:14 +0200 |
commit | 4ac41d6114d57a6b404185f055f796ccbf8e1967 (patch) | |
tree | 8264ca6de474b087a0350a0a1e1083ed047e91c1 /hwclock/clock.h | |
parent | hwclock: move long options away from global scope (diff) | |
download | kernel-qcow2-util-linux-4ac41d6114d57a6b404185f055f796ccbf8e1967.tar.gz kernel-qcow2-util-linux-4ac41d6114d57a6b404185f055f796ccbf8e1967.tar.xz kernel-qcow2-util-linux-4ac41d6114d57a6b404185f055f796ccbf8e1967.zip |
hwclock: validate numeric option arguments
Instead atoi() use strtoul_or_err().
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'hwclock/clock.h')
-rw-r--r-- | hwclock/clock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/clock.h b/hwclock/clock.h index 363541bbd..175a6d1ae 100644 --- a/hwclock/clock.h +++ b/hwclock/clock.h @@ -26,7 +26,7 @@ typedef int bool; /* hwclock.c */ extern char *progname; extern int debug; -extern int epoch_option; +extern unsigned long epoch_option; extern double time_diff(struct timeval subtrahend, struct timeval subtractor); /* cmos.c */ extern void set_cmos_epoch(int ARCconsole, int SRM); |