diff options
author | Ruediger Meier | 2017-06-20 20:30:29 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-26 14:38:24 +0200 |
commit | fa2cd89aca82d14943133c76763c04ae430d5dc7 (patch) | |
tree | bc3977de825e8ede02da1fddcc6543ffce447ca1 /misc-utils | |
parent | misc: never use usage(stderr) (diff) | |
download | kernel-qcow2-util-linux-fa2cd89aca82d14943133c76763c04ae430d5dc7.tar.gz kernel-qcow2-util-linux-fa2cd89aca82d14943133c76763c04ae430d5dc7.tar.xz kernel-qcow2-util-linux-fa2cd89aca82d14943133c76763c04ae430d5dc7.zip |
misc: cosmetics, remove argument from usage(int)
This patch is trivial and changes nothing, because
we were always using usage(0).
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'misc-utils')
-rw-r--r-- | misc-utils/blkid.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc-utils/blkid.c b/misc-utils/blkid.c index 52179e5e1..f4757e8c8 100644 --- a/misc-utils/blkid.c +++ b/misc-utils/blkid.c @@ -68,9 +68,9 @@ static void print_version(FILE *out) LIBBLKID_VERSION, LIBBLKID_DATE); } -static void usage(int error) +static void __attribute__((__noreturn__)) usage(void) { - FILE *out = error ? stderr : stdout; + FILE *out = stdout; fputs(USAGE_HEADER, out); fprintf(out, _( " %s --label <label> | --uuid <uuid>\n\n"), program_invocation_short_name); @@ -106,7 +106,7 @@ static void usage(int error) fputs(USAGE_HELP, out); fputs(USAGE_VERSION, out); fprintf(out, USAGE_MAN_TAIL("blkid(8)")); - exit(error); + exit(EXIT_SUCCESS); } /* @@ -794,7 +794,7 @@ int main(int argc, char **argv) /* ignore - backward compatibility */ break; case 'h': - usage(0); + usage(); break; default: errtryhelp(EXIT_FAILURE); |