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

index b44f0e018499c2c960a5ef294d49816594f78893..a825f624762839bf4778f180740cac6d500a6908 100644 (file)
@@ -75,12 +75,14 @@ static gid_t myegid;
 
 static void __attribute__ ((__noreturn__)) usage(FILE * out)
 {
-       fprintf(out, _("Usage: %s [options] user [ttyname]\n"),
-               program_invocation_short_name);
-
-       fprintf(out, _("\nOptions:\n"
-                      " -V, --version    output version information and exit\n"
-                      " -h, --help       display this help and exit\n\n"));
+       fputs(_("\nUsage:\n"), out);
+       fprintf(out,
+             _(" %s [options] <user> [<ttyname>]\n"),
+             program_invocation_short_name);
+
+       fputs(_("\nOptions:\n"), out);
+       fputs(_(" -V, --version    output version information and exit\n"
+               " -h, --help       display this help and exit\n\n"), out);
 
        exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }