From 6f162034d0fc9a49ab1dcf2b773fa9677215cba3 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sat, 17 Sep 2011 12:52:32 +0200 Subject: 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 --- sys-utils/ctrlaltdel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/ctrlaltdel.c') diff --git a/sys-utils/ctrlaltdel.c b/sys-utils/ctrlaltdel.c index 8805435d4..db96fccc4 100644 --- a/sys-utils/ctrlaltdel.c +++ b/sys-utils/ctrlaltdel.c @@ -19,10 +19,10 @@ static void __attribute__ ((__noreturn__)) usage(FILE * out) fprintf(out, USAGE_HEADER); fprintf(out, _(" %s \n"), program_invocation_short_name); fprintf(out, USAGE_OPTIONS); + fprintf(out, USAGE_SEPARATOR); fprintf(out, USAGE_HELP); fprintf(out, USAGE_VERSION); - fprintf(out, USAGE_BEGIN_TAIL); - fprintf(out, USAGE_MAN_TAIL, "ctrlaltdel(8)"); + fprintf(out, USAGE_MAN_TAIL("ctrlaltdel(8)")); exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS); } -- cgit v1.2.3-55-g7522