summaryrefslogtreecommitdiffstats
path: root/misc-utils/mcookie.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-16 12:30:26 +0200
committerKarel Zak2011-08-16 12:30:26 +0200
commitb417b1ee2264022eba8f443e7e5feeff89a0291e (patch)
tree7db250516278e93fcd73e2907f5ca6693b857dd4 /misc-utils/mcookie.c
parentlook: cleanup usage() (diff)
downloadkernel-qcow2-util-linux-b417b1ee2264022eba8f443e7e5feeff89a0291e.tar.gz
kernel-qcow2-util-linux-b417b1ee2264022eba8f443e7e5feeff89a0291e.tar.xz
kernel-qcow2-util-linux-b417b1ee2264022eba8f443e7e5feeff89a0291e.zip
mcookie: cleanup usage()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/mcookie.c')
-rw-r--r--misc-utils/mcookie.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/misc-utils/mcookie.c b/misc-utils/mcookie.c
index 1e6b64b08..5bef4c541 100644
--- a/misc-utils/mcookie.c
+++ b/misc-utils/mcookie.c
@@ -63,14 +63,15 @@ static off_t hash_file(struct MD5Context *ctx, int fd)
static void __attribute__ ((__noreturn__)) usage(FILE * out)
{
- fprintf(out, _("Usage: %s [options]\n"),
- program_invocation_short_name);
-
- fprintf(out, _("\nOptions:\n"
- " -f, --file=FILE use file as a cookie seed\n"
- " -v, --verbose explain what is being done\n"
- " -V, --version output version information and exit\n"
- " -h, --help display this help and exit\n"));
+ fputs(_("\nUsage:\n"), out);
+ fprintf(out,
+ _(" %s [options]\n"), program_invocation_short_name);
+
+ fputs(_("\nOptions:\n"), out);
+ fputs(_(" -f, --file <file> use file as a cookie seed\n"
+ " -v, --verbose explain what is being done\n"
+ " -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);
}