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 ++++++++++----------- ax25ipd/ax25ipd.h | 1 - 2 files changed, 10 insertions(+), 12 deletions(-) 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; diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h index d554b3e..58541cb 100644 --- a/ax25ipd/ax25ipd.h +++ b/ax25ipd/ax25ipd.h @@ -177,7 +177,6 @@ int ok_crc(unsigned char *, int); /* ax25ipd.c */ int main(int, char **); -void greet_world(void); void hupper(int); void usr1_handler(int); void int_handler(int); -- cgit v1.2.3