]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mcookie: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 10:30:26 +0000 (12:30 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 16 Aug 2011 10:30:26 +0000 (12:30 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/mcookie.c

index 1e6b64b08ff74f91c300aa8fad8fbf8ca8646447..5bef4c541c83bde43b14d5cadd8fa146f1af2c06 100644 (file)
@@ -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);
 }