From 90ffcadfa516176e26275b680baa68a689bd5dc1 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Fri, 15 Aug 2025 18:08:06 +0200 Subject: [PATCH] Refactor to remove code duplication in ampctl*.c --- tests/ampctl.c | 2 -- tests/ampctl_parse.c | 2 ++ tests/ampctld.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/ampctl.c b/tests/ampctl.c index bc250e16b..321dde1ec 100644 --- a/tests/ampctl.c +++ b/tests/ampctl.c @@ -466,6 +466,4 @@ void usage() ); usage_amp(stdout); - - printf("\nReport bugs to .\n"); } diff --git a/tests/ampctl_parse.c b/tests/ampctl_parse.c index 44705b8d5..e47b6c1ff 100644 --- a/tests/ampctl_parse.c +++ b/tests/ampctl_parse.c @@ -1492,6 +1492,8 @@ void usage_amp(FILE *fout) "Commands and arguments read from standard input must be white space separated,\n" "comments are allowed, comments start with the # character and continue to the\n" "end of the line.\n"); + + fprintf(fout, "\nReport bugs to .\n"); } diff --git a/tests/ampctld.c b/tests/ampctld.c index d5c49ff0b..b03d2f2c8 100644 --- a/tests/ampctld.c +++ b/tests/ampctld.c @@ -705,6 +705,4 @@ void usage() portno); usage_amp(stdout); - - printf("\nReport bugs to .\n"); }