diff options
author | Ruediger Meier | 2017-06-29 15:52:16 +0200 |
---|---|---|
committer | Ruediger Meier | 2017-06-29 16:54:33 +0200 |
commit | f45f3ec34a37e2779d09625b93be5eb91174f8fc (patch) | |
tree | cba0a6875b5998436a63ac0f45fb8d98b1be47f1 /sys-utils/ipcs.c | |
parent | blockdev: correct man page name in --help (diff) | |
download | kernel-qcow2-util-linux-f45f3ec34a37e2779d09625b93be5eb91174f8fc.tar.gz kernel-qcow2-util-linux-f45f3ec34a37e2779d09625b93be5eb91174f8fc.tar.xz kernel-qcow2-util-linux-f45f3ec34a37e2779d09625b93be5eb91174f8fc.zip |
misc: consolidate macro style USAGE_HELP_OPTIONS
changed in include/c.h and applied via sed:
sed -i 's/fprintf.*\(USAGE_MAN_TAIL.*\)/printf(\1/' $(git ls-files -- "*.c")
sed -i 's/print_usage_help_options\(.*\);/printf(USAGE_HELP_OPTIONS\1);/' $(git ls-files -- "*.c")
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'sys-utils/ipcs.c')
-rw-r--r-- | sys-utils/ipcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c index e63f10afe..73cf28ab1 100644 --- a/sys-utils/ipcs.c +++ b/sys-utils/ipcs.c @@ -58,7 +58,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(USAGE_OPTIONS, out); fputs(_(" -i, --id <id> print details on resource identified by <id>\n"), out); - print_usage_help_options(16); + printf(USAGE_HELP_OPTIONS(16)); fputs(USAGE_SEPARATOR, out); fputs(_("Resource options:\n"), out); @@ -76,7 +76,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" -u, --summary show status summary\n"), out); fputs(_(" --human show sizes in human-readable format\n"), out); fputs(_(" -b, --bytes show sizes in bytes\n"), out); - fprintf(out, USAGE_MAN_TAIL("ipcs(1)")); + printf(USAGE_MAN_TAIL("ipcs(1)")); exit(EXIT_SUCCESS); } |