summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.h
diff options
context:
space:
mode:
authorJ William Piggott2017-07-14 21:51:47 +0200
committerJ William Piggott2017-07-16 14:41:54 +0200
commitf7599b4f86f0db5856770fcdaeb599b76ea64b64 (patch)
tree6eaec6e681b6f35a7073724031601602d8ea32e7 /sys-utils/hwclock.h
parentlibfdisk: make fdisk compliant to UEFI/GPT specification on PMBR (diff)
downloadkernel-qcow2-util-linux-f7599b4f86f0db5856770fcdaeb599b76ea64b64.tar.gz
kernel-qcow2-util-linux-f7599b4f86f0db5856770fcdaeb599b76ea64b64.tar.xz
kernel-qcow2-util-linux-f7599b4f86f0db5856770fcdaeb599b76ea64b64.zip
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 <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.h')
-rw-r--r--sys-utils/hwclock.h2
1 files changed, 1 insertions, 1 deletions
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;