]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setsid: cleanup usage()
authorKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2012 08:28:38 +0000 (09:28 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 20 Mar 2012 08:28:38 +0000 (09:28 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/setsid.c

index d02879eff76bcd05c376309088ae052149339234..132f4a2abd456c88da63c917822d64da1c828cde 100644 (file)
 
 static void __attribute__ ((__noreturn__)) usage(FILE * out)
 {
-       fprintf(out, USAGE_HEADER);
-       fprintf(out, _(" %s [options] <program> [arguments ...]\n"),
-               program_invocation_short_name);
-       fprintf(out, USAGE_OPTIONS);
+       fputs(USAGE_HEADER, out);
        fprintf(out, _(
-               " -c, --ctty \tset the controlling terminal to the current one\n"
-               ));
-       fprintf(out, USAGE_HELP);
-       fprintf(out, USAGE_VERSION);
+               " %s [options] <program> [arguments ...]\n"),
+               program_invocation_short_name);
+
+       fputs(USAGE_OPTIONS, out);
+       fputs(_(" -c, --ctty     set the controlling terminal to the current one\n"),
+               out);
+
+       fputs(USAGE_HELP, out);
+       fputs(USAGE_VERSION, out);
+
        fprintf(out, USAGE_MAN_TAIL("setsid(1)"));
        exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
 }