From f45f3ec34a37e2779d09625b93be5eb91174f8fc Mon Sep 17 00:00:00 2001 From: Ruediger Meier Date: Thu, 29 Jun 2017 15:52:16 +0200 Subject: 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 --- sys-utils/wdctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/wdctl.c') diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c index 1b82fc830..33012dca3 100644 --- a/sys-utils/wdctl.c +++ b/sys-utils/wdctl.c @@ -190,7 +190,7 @@ static void __attribute__((__noreturn__)) usage(void) " -x, --flags-only print only flags table (same as -I -T)\n"), out); fputs(USAGE_SEPARATOR, out); - print_usage_help_options(24); + printf(USAGE_HELP_OPTIONS(24)); fputs(USAGE_SEPARATOR, out); fprintf(out, _("The default device is %s.\n"), _PATH_WATCHDOG_DEV); @@ -199,7 +199,7 @@ static void __attribute__((__noreturn__)) usage(void) for (i = 0; i < ARRAY_SIZE(infos); i++) fprintf(out, " %13s %s\n", infos[i].name, _(infos[i].help)); - fprintf(out, USAGE_MAN_TAIL("wdctl(8)")); + printf(USAGE_MAN_TAIL("wdctl(8)")); exit(EXIT_SUCCESS); } -- cgit v1.2.3-55-g7522