From a290362bb8cf028c4ac9fcd834d5891af90522be Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 16 Aug 2011 13:53:36 +0200 Subject: wall: cleanup usage() Signed-off-by: Karel Zak --- term-utils/wall.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'term-utils/wall.c') diff --git a/term-utils/wall.c b/term-utils/wall.c index 7f7e0eab6..708982603 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -84,14 +84,15 @@ static void usage(FILE *out); static void __attribute__((__noreturn__)) usage(FILE *out) { - fprintf(out, _("Usage: %s [options] [file]\n"), - program_invocation_short_name); - fprintf(out, _( - "\nOptions:\n" - " -n, --nobanner do not print banner, works only for root\n" - " -t, --timeout TIMEOUT write timeout in seconds\n" + fputs(_("\nUsage:\n"), out); + fprintf(out, + _(" %s [options] []\n"),program_invocation_short_name); + + fputs(_("\nOptions:\n"), out); + fputs(_(" -n, --nobanner do not print banner, works only for root\n" + " -t, --timeout write timeout in seconds\n" " -V, --version output version information and exit\n" - " -h, --help display this help and exit\n\n")); + " -h, --help display this help and exit\n\n"), out); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } -- cgit v1.2.3-55-g7522