summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.c
diff options
context:
space:
mode:
authorJ William Piggott2017-04-20 15:34:33 +0200
committerJ William Piggott2017-04-27 05:19:56 +0200
commit57415653a667cf2442d019f62287534931ab3da4 (patch)
treefca4f60aa602ddf3d3e8a3999fd24dc93d102b9b /sys-utils/hwclock.c
parenthwclock: remove unneeded braces (diff)
downloadkernel-qcow2-util-linux-57415653a667cf2442d019f62287534931ab3da4.tar.gz
kernel-qcow2-util-linux-57415653a667cf2442d019f62287534931ab3da4.tar.xz
kernel-qcow2-util-linux-57415653a667cf2442d019f62287534931ab3da4.zip
hwclock: use a consistent name for --predict
The predict function name is documented as '--predict', but the code uses '--predict-hc'. This works okay, except that the 'mutually exclusive' error message prints the undocumented name. * sys-utils/hwclock.c: rename 'predict-hc' to 'predict' so that it matches the man-page. This should not be a problem because 'predict-hc' was never documented. Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r--sys-utils/hwclock.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index e66acd228..e890cb8c1 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1304,7 +1304,7 @@ int main(int argc, char **argv)
OPT_GETEPOCH,
OPT_LOCALTIME,
OPT_NOADJFILE,
- OPT_PREDICT_HC,
+ OPT_PREDICT,
OPT_SET,
OPT_SETEPOCH,
OPT_SYSTZ,
@@ -1337,7 +1337,7 @@ int main(int argc, char **argv)
#endif
{ "adjfile", required_argument, NULL, OPT_ADJFILE },
{ "systz", no_argument, NULL, OPT_SYSTZ },
- { "predict-hc", no_argument, NULL, OPT_PREDICT_HC },
+ { "predict", no_argument, NULL, OPT_PREDICT },
{ "get", no_argument, NULL, OPT_GET },
{ "update-drift", no_argument, NULL, OPT_UPDATE },
{ NULL, 0, NULL, 0 }
@@ -1345,7 +1345,7 @@ int main(int argc, char **argv)
static const ul_excl_t excl[] = { /* rows and cols in ASCII order */
{ 'a','r','s','w',
- OPT_GET, OPT_GETEPOCH, OPT_PREDICT_HC,
+ OPT_GET, OPT_GETEPOCH, OPT_PREDICT,
OPT_SET, OPT_SETEPOCH, OPT_SYSTZ },
{ 'u', OPT_LOCALTIME},
{ OPT_ADJFILE, OPT_NOADJFILE },
@@ -1454,8 +1454,8 @@ int main(int argc, char **argv)
ctl.systz = 1; /* --systz */
ctl.show = 0;
break;
- case OPT_PREDICT_HC:
- ctl.predict = 1; /* --predict-hc */
+ case OPT_PREDICT:
+ ctl.predict = 1; /* --predict */
ctl.show = 0;
break;
case OPT_GET: