summaryrefslogtreecommitdiffstats
path: root/term-utils/write.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 13:56:17 +0200
committerKarel Zak2011-08-16 13:56:17 +0200
commit4c27cd90897f5a02a759ac70fd6d193fb336923c (patch)
tree80f915181c83c0b8edc7beb4bddeddf52926fcd5 /term-utils/write.c
parentwall: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-4c27cd90897f5a02a759ac70fd6d193fb336923c.tar.gz
kernel-qcow2-util-linux-4c27cd90897f5a02a759ac70fd6d193fb336923c.tar.xz
kernel-qcow2-util-linux-4c27cd90897f5a02a759ac70fd6d193fb336923c.zip
write: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/write.c')
-rw-r--r--term-utils/write.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/term-utils/write.c b/term-utils/write.c
index b44f0e018..a825f6247 100644
--- a/term-utils/write.c
+++ b/term-utils/write.c
@@ -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);
}