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

index 1c96a412d913da5ad5bb9dd57ffdeaa21c1ffa91..13d4fb757ec67c98e2c58e95d0cec415c306eae2 100644 (file)
 
 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);
 }