From: J William Piggott Date: Sat, 1 Jul 2017 18:07:14 +0000 (-0400) Subject: hwclock: remove from usage() FILE *out = stdout X-Git-Tag: v2.31-rc1~224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02777914d58e15cd8f369360a58dbb98c51636b4;p=thirdparty%2Futil-linux.git hwclock: remove from usage() FILE *out = stdout Signed-off-by: J William Piggott --- diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index a9d3887cab..f69e0108e2 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1202,46 +1202,45 @@ static void out_version(void) static void __attribute__((__noreturn__)) usage(const struct hwclock_control *ctl) { - FILE *out = stdout; - fputs(USAGE_HEADER, out); - fputs(_(" hwclock [function] [option...]\n"), out); - - fputs(USAGE_SEPARATOR, out); - fputs(_("Query or set the RTC (Real Time Clock / Hardware Clock)\n"), out); - - fputs(USAGE_FUNCTIONS, out); - fputs(_(" -r, --show display the RTC time\n"), out); - fputs(_(" --get display drift corrected RTC time\n"), out); - fputs(_(" --set set the RTC according to --date\n"), out); - fputs(_(" -s, --hctosys set the system time from the RTC\n"), out); - fputs(_(" -w, --systohc set the RTC from the system time\n"), out); - fputs(_(" --systz send timescale configurations to the kernel\n"), out); - fputs(_(" --adjust adjust the RTC to account for systematic drift\n"), out); + fputs(USAGE_HEADER, stdout); + puts(_(" hwclock [function] [option...]")); + + fputs(USAGE_SEPARATOR, stdout); + puts(_("Query or set the RTC (Real Time Clock / Hardware Clock)")); + + fputs(USAGE_FUNCTIONS, stdout); + puts(_(" -r, --show display the RTC time")); + puts(_(" --get display drift corrected RTC time")); + puts(_(" --set set the RTC according to --date")); + puts(_(" -s, --hctosys set the system time from the RTC")); + puts(_(" -w, --systohc set the RTC from the system time")); + puts(_(" --systz send timescale configurations to the kernel")); + puts(_(" --adjust adjust the RTC to account for systematic drift")); #if defined(__linux__) && defined(__alpha__) - fputs(_(" --getepoch display the RTC epoch\n"), out); - fputs(_(" --setepoch set the RTC epoch according to --epoch\n"), out); + puts(_(" --getepoch display the RTC epoch")); + puts(_(" --setepoch set the RTC epoch according to --epoch")); #endif - fputs(_(" --predict predict the drifted RTC time according to --date\n"), out); - fputs(USAGE_OPTIONS, out); - fputs(_(" -u, --utc inform hwclock the RTC timescale is UTC\n"), out); - fputs(_(" -l, --localtime inform hwclock the RTC timescale is Local\n"), out); + puts(_(" --predict predict the drifted RTC time according to --date")); + fputs(USAGE_OPTIONS, stdout); + puts(_(" -u, --utc inform hwclock the RTC timescale is UTC")); + puts(_(" -l, --localtime inform hwclock the RTC timescale is Local")); #ifdef __linux__ printf(_( - " -f, --rtc use an alternate file to %1$s\n"), _PATH_RTC_DEV); + " -f, --rtc use an alternate file to %1$s\n"), _PATH_RTC_DEV); #endif printf(_( - " --directisa use the ISA bus instead of %1$s access\n"), _PATH_RTC_DEV); - fputs(_(" --date