summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcrm.c
diff options
context:
space:
mode:
authorSami Kerola2011-09-17 12:52:32 +0200
committerSami Kerola2011-09-17 15:07:52 +0200
commit6f162034d0fc9a49ab1dcf2b773fa9677215cba3 (patch)
treee6f0572f92578723a0c385cb6acd12b4aca13960 /sys-utils/ipcrm.c
parentipcrm: check IPC syscalls (diff)
downloadkernel-qcow2-util-linux-6f162034d0fc9a49ab1dcf2b773fa9677215cba3.tar.gz
kernel-qcow2-util-linux-6f162034d0fc9a49ab1dcf2b773fa9677215cba3.tar.xz
kernel-qcow2-util-linux-6f162034d0fc9a49ab1dcf2b773fa9677215cba3.zip
build-sys: fixes to USAGE_* macros
The USAGE_BEGIN_TAIL is removed as unnecessary. In between command specific options and --help & --version USAGE_SEPARATOR is inserted. For now the separator is empty line. The USAGE_MAN_TAIL is changed to take an argument. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/ipcrm.c')
-rw-r--r--sys-utils/ipcrm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-utils/ipcrm.c b/sys-utils/ipcrm.c
index ab06cd3cd..90767d611 100644
--- a/sys-utils/ipcrm.c
+++ b/sys-utils/ipcrm.c
@@ -57,10 +57,10 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out)
fputs(_(" -S, --semaphore-key <key> remove semaprhore by key\n"), out);
fputs(_(" -a, --all[=<shm|msg|sem>] remove all\n"), out);
fputs(_(" -v, --verbose explain what is being done\n"), out);
+ fprintf(out, USAGE_SEPARATOR);
fprintf(out, USAGE_HELP);
fprintf(out, USAGE_VERSION);
- fprintf(out, USAGE_BEGIN_TAIL);
- fprintf(out, USAGE_MAN_TAIL, "ipcrm(1)");
+ fprintf(out, USAGE_MAN_TAIL("ipcrm(1)"));
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}