From 2217abebbba3e9b6653b20e6fa55fc47c3369c2f Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Jul 2017 20:47:25 +0200 Subject: ax25ipd: Make function greet_world() static. It's only being used from within ax25ipd.c. To avoid the need for a prototype within ax25ipd.c move the function above its first caller. Signed-off-by: Ralf Baechle --- ax25ipd/ax25ipd.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'ax25ipd/ax25ipd.c') diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c index 12d6064..a7068f0 100644 --- a/ax25ipd/ax25ipd.c +++ b/ax25ipd/ax25ipd.c @@ -63,6 +63,16 @@ static struct option options[] = { {NULL, 0, NULL, 0} }; +static void greet_world(void) +{ + printf("\nax25ipd %s / %s\n", VERSION); + printf + ("Copyright 1991, Michael Westerhof, Sun Microsystems, Inc.\n"); + printf + ("This software may be freely used, distributed, or modified, providing\nthis header is not removed\n\n"); + fflush(stdout); +} + int main(int argc, char **argv) { if (setjmp(restart_env) == 0) { @@ -187,17 +197,6 @@ int main(int argc, char **argv) return 0; } - -void greet_world(void) -{ - printf("\nax25ipd %s / %s\n", VERSION); - printf - ("Copyright 1991, Michael Westerhof, Sun Microsystems, Inc.\n"); - printf - ("This software may be freely used, distributed, or modified, providing\nthis header is not removed\n\n"); - fflush(stdout); -} - static void do_stats(void) { int save_loglevel; -- cgit v1.2.3