]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
wall: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:53:36 +0000 (13:53 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 11:53:36 +0000 (13:53 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/wall.c

index 7f7e0eab631f3d5d26dd472ffd8367a022eee0ac..70898260320ba0ecbc9e4382699c1fc96aa0dc35 100644 (file)
@@ -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] [<file>]\n"),program_invocation_short_name);
+
+       fputs(_("\nOptions:\n"), out);
+       fputs(_(" -n, --nobanner          do not print banner, works only for root\n"
+               " -t, --timeout <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);
 }