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 /term-utils/agetty.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 'term-utils/agetty.c')
-rw-r--r-- | term-utils/agetty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c index 7df5a5268..23cac403e 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -2112,7 +2112,7 @@ static void __attribute__((__noreturn__)) usage(void) fputs(_(" --reload reload prompts on running agetty instances\n"), out); printf( " --help %s\n", USAGE_OPTSTR_HELP); printf( " --version %s\n", USAGE_OPTSTR_VERSION); - fprintf(out, USAGE_MAN_TAIL("agetty(8)")); + printf(USAGE_MAN_TAIL("agetty(8)")); exit(EXIT_SUCCESS); } |