summaryrefslogtreecommitdiffstats
path: root/sys-utils/hwclock.c
diff options
context:
space:
mode:
authorJ William Piggott2017-04-21 02:53:23 +0200
committerJ William Piggott2017-06-21 01:15:05 +0200
commit7d9a866d1ba65e14d53b4f67bf8488800df5ac7b (patch)
tree52f2d5bdba2aa5315ae93153b414e9cbf1a69ee9 /sys-utils/hwclock.c
parenthwclock: update usage() to util-linux style (diff)
downloadkernel-qcow2-util-linux-7d9a866d1ba65e14d53b4f67bf8488800df5ac7b.tar.gz
kernel-qcow2-util-linux-7d9a866d1ba65e14d53b4f67bf8488800df5ac7b.tar.xz
kernel-qcow2-util-linux-7d9a866d1ba65e14d53b4f67bf8488800df5ac7b.zip
hwclock: update usage() FILE name
Use the util-linux standard file name instead of 'usageto'. Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r--sys-utils/hwclock.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c
index d2f8ad157..28655b0b9 100644
--- a/sys-utils/hwclock.c
+++ b/sys-utils/hwclock.c
@@ -1200,44 +1200,44 @@ static void out_version(void)
}
static void __attribute__((__noreturn__))
-usage(const struct hwclock_control *ctl, FILE *usageto)
+usage(const struct hwclock_control *ctl, FILE *out)
{
- fputs(USAGE_HEADER, usageto);
- fputs(_(" hwclock [function] [option...]\n"), usageto);
+ fputs(USAGE_HEADER, out);
+ fputs(_(" hwclock [function] [option...]\n"), out);
- fputs(USAGE_SEPARATOR, usageto);
- fputs(_(" Query or set the hardware clock\n"), usageto);
+ fputs(USAGE_SEPARATOR, out);
+ fputs(_(" Query or set the hardware clock\n"), out);
- fputs(USAGE_SEPARATOR, usageto);
- fputs(_("Functions:\n"), usageto);
+ fputs(USAGE_SEPARATOR, out);
+ fputs(_("Functions:\n"), out);
fputs(_(" -r, --show read hardware clock and print result\n"
" --get read hardware clock and print drift corrected result\n"
- " --set set the RTC to the time given with --date\n"), usageto);
+ " --set set the RTC to the time given with --date\n"), out);
fputs(_(" -s, --hctosys set the system time from the hardware clock\n"
" -w, --systohc set the hardware clock from the current system time\n"
" --systz set the system time based on the current timezone\n"
" --adjust adjust the RTC to account for systematic drift since\n"
- " the clock was last set or adjusted\n"), usageto);
+ " the clock was last set or adjusted\n"), out);
#if defined(__linux__) && defined(__alpha__)
fputs(_(" --getepoch print out the kernel's hardware clock epoch value\n"
" --setepoch set the kernel's hardware clock epoch value to the \n"
- " value given with --epoch\n"), usageto);
+ " value given with --epoch\n"), out);
#endif
- fputs(_(" --predict predict RTC reading at time given with --date\n"), usageto);
+ fputs(_(" --predict predict RTC reading at time given with --date\n"), out);
- fputs(USAGE_OPTIONS, usageto);
+ fputs(USAGE_OPTIONS, out);
fputs(_(" -u, --utc the hardware clock is kept in UTC\n"
- " -l, --localtime the hardware clock is kept in local time\n"), usageto);
+ " -l, --localtime the hardware clock is kept in local time\n"), out);
#ifdef __linux__
- fputs(_(" -f, --rtc <file> special /dev/... file to use instead of default\n"), usageto);
+ fputs(_(" -f, --rtc <file> special /dev/... file to use instead of default\n"), out);
#endif
- fprintf(usageto, _(
+ fprintf(out, _(
" --directisa access the ISA bus directly instead of %s\n"
" --date <time> specifies the time to which to set the hardware clock\n"), _PATH_RTC_DEV);
#if defined(__linux__) && defined(__alpha__)
- fputs(_(" --epoch <year> specifies the hardware clock's epoch value\n"), usageto);
+ fputs(_(" --epoch <year> specifies the hardware clock's epoch value\n"), out);
#endif
- fprintf(usageto, _(
+ fprintf(out, _(
" --update-drift update drift factor in %1$s (requires\n"
" --set or --systohc)\n"
" --noadjfile do not access %1$s; this requires the use of\n"
@@ -1245,11 +1245,11 @@ usage(const struct hwclock_control *ctl, FILE *usageto)
" --adjfile <file> specifies the path to the adjust file;\n"
" the default is %1$s\n"), _PATH_ADJTIME);
fputs(_(" --test do not update anything, just show what would happen\n"
- " -D, --debug debugging mode\n"), usageto);
- fputs(USAGE_SEPARATOR, usageto);
- fputs(USAGE_HELP, usageto);
- fputs(USAGE_VERSION, usageto);
- fprintf(usageto, USAGE_MAN_TAIL("hwclock(8)"));
+ " -D, --debug debugging mode\n"), out);
+ fputs(USAGE_SEPARATOR, out);
+ fputs(USAGE_HELP, out);
+ fputs(USAGE_VERSION, out);
+ fprintf(out, USAGE_MAN_TAIL("hwclock(8)"));
hwclock_exit(ctl, EXIT_SUCCESS);
}