From f7599b4f86f0db5856770fcdaeb599b76ea64b64 Mon Sep 17 00:00:00 2001 From: J William Piggott Date: Fri, 14 Jul 2017 15:51:47 -0400 Subject: hwclock: --epoch presence test fails hwclock --setepoch --epoch 0 Will warn that the epoch option is required. The --epoch presence test is made on its argument after it is converted to an integer. This means any value it can be tested for, can also be given as an input. So make the conversion after the presence test, like the --date option does. Signed-off-by: J William Piggott --- sys-utils/hwclock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys-utils/hwclock.h') diff --git a/sys-utils/hwclock.h b/sys-utils/hwclock.h index d527fe310..61be57ac7 100644 --- a/sys-utils/hwclock.h +++ b/sys-utils/hwclock.h @@ -20,7 +20,7 @@ struct hwclock_control { char *date_opt; char *adj_file_name; #if defined(__linux__) && defined(__alpha__) - unsigned long epoch_option; + char *epoch_option; #endif #ifdef __linux__ char *rtc_dev_name; -- cgit v1.2.3-55-g7522