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 --- include/c.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'include/c.h') diff --git a/include/c.h b/include/c.h index fc766e069..119a127e3 100644 --- a/include/c.h +++ b/include/c.h @@ -319,13 +319,11 @@ static inline int xusleep(useconds_t usec) #define USAGE_OPTSTR_HELP _("display this help") #define USAGE_OPTSTR_VERSION _("print version") -#define print_usage_help_options(marg_dsc) \ - printf( \ +#define USAGE_HELP_OPTIONS(marg_dsc) \ "%-" #marg_dsc "s%s\n" \ "%-" #marg_dsc "s%s\n" \ , " -h, --help", USAGE_OPTSTR_HELP \ - , " -V, --version", USAGE_OPTSTR_VERSION \ - ) + , " -V, --version", USAGE_OPTSTR_VERSION #define USAGE_MAN_TAIL(_man) _("\nFor more details see %s.\n"), _man -- cgit v1.2.3-55-g7522