From 2960a4a3436044ba46d5ca061190658a5b214b6d Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 16 Aug 2011 13:39:03 +0200 Subject: mesg: cleanup usage() Signed-off-by: Karel Zak --- term-utils/mesg.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'term-utils') diff --git a/term-utils/mesg.c b/term-utils/mesg.c index 1c96a412d..13d4fb757 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); } -- cgit v1.2.3-55-g7522