summaryrefslogtreecommitdiffstats
path: root/term-utils/wall.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 13:53:36 +0200
committerKarel Zak2011-08-16 13:53:36 +0200
commita290362bb8cf028c4ac9fcd834d5891af90522be (patch)
tree78e86d6618cd4cf6362d14ce88429db3da257ddf /term-utils/wall.c
parentsetterm: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-a290362bb8cf028c4ac9fcd834d5891af90522be.tar.gz
kernel-qcow2-util-linux-a290362bb8cf028c4ac9fcd834d5891af90522be.tar.xz
kernel-qcow2-util-linux-a290362bb8cf028c4ac9fcd834d5891af90522be.zip
wall: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils/wall.c')
-rw-r--r--term-utils/wall.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c
index 7f7e0eab6..708982603 100644
--- a/term-utils/wall.c
+++ b/term-utils/wall.c
@@ -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);
}