From: Karel Zak Date: Thu, 2 Feb 2012 13:23:49 +0000 (+0100) Subject: hwclock: clean usage, remove redundat code X-Git-Tag: v2.21-rc2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f899788689f07cd79dc0bf21f772313d71cc44e;p=thirdparty%2Futil-linux.git hwclock: clean usage, remove redundat code Signed-off-by: Karel Zak --- diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c index e9db43cad5..1a430ada29 100644 --- a/hwclock/hwclock.c +++ b/hwclock/hwclock.c @@ -1416,14 +1416,13 @@ static void usage(const char *fmt, ...) "\n"), usageto); #endif - fflush(usageto); if (fmt) { - usageto = stderr; va_start(ap, fmt); - vfprintf(stderr, fmt, ap); + vfprintf(usageto, fmt, ap); va_end(ap); } + fflush(usageto); hwclock_exit(fmt ? EX_USAGE : EX_OK); }