From: Karel Zak Date: Tue, 16 Aug 2011 11:39:03 +0000 (+0200) Subject: mesg: cleanup usage() X-Git-Tag: v2.20-rc2~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2960a4a3436044ba46d5ca061190658a5b214b6d;p=thirdparty%2Futil-linux.git mesg: cleanup usage() Signed-off-by: Karel Zak --- diff --git a/term-utils/mesg.c b/term-utils/mesg.c index 1c96a412d9..13d4fb757e 100644 --- a/term-utils/mesg.c +++ b/term-utils/mesg.c @@ -65,13 +65,14 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) { - fprintf(out, _("\nUsage:\n" - " %s [options] [y | n]\n"), program_invocation_short_name); + fputs(_("\nUsage:\n"), out); fprintf(out, - _("\nOptions:\n" - " -v, --verbose explain what is being done\n" - " -V, --version output version information and exit\n" - " -h, --help output help screen and exit\n\n")); + _(" %s [options] [y | n]\n"), program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -v, --verbose explain what is being done\n" + " -V, --version output version information and exit\n" + " -h, --help output help screen and exit\n\n"), out); exit(out == stderr ? MESG_EXIT_FAILURE : EXIT_SUCCESS); }