summaryrefslogtreecommitdiffstats
path: root/term-utils/mesg.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 13:39:03 +0200
committerKarel Zak2011-08-16 13:39:03 +0200
commit2960a4a3436044ba46d5ca061190658a5b214b6d (patch)
tree83d60cc81aebc545959bdd38ed6fb6bd51a5d2fe /term-utils/mesg.c
parentpartx: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-2960a4a3436044ba46d5ca061190658a5b214b6d.tar.gz
kernel-qcow2-util-linux-2960a4a3436044ba46d5ca061190658a5b214b6d.tar.xz
kernel-qcow2-util-linux-2960a4a3436044ba46d5ca061190658a5b214b6d.zip
mesg: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/mesg.c')
-rw-r--r--term-utils/mesg.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/term-utils/mesg.c b/term-utils/mesg.c
index 1c96a412d..13d4fb757 100644
--- a/term-utils/mesg.c
+++ b/term-utils/mesg.c
@@ -65,13 +65,14 @@
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);
}