diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 20:47:25 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 20:51:31 +0200 |
commit | 2217abebbba3e9b6653b20e6fa55fc47c3369c2f (patch) | |
tree | f5b6c98731fe69b8df728bf0a6bbe5505ea98513 /ax25ipd/ax25ipd.c | |
parent | 80855de37d38b5b5e00c8d2f765e60b586962536 (diff) |
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 <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/ax25ipd.c')
-rw-r--r-- | ax25ipd/ax25ipd.c | 21 |
1 files changed, 10 insertions, 11 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; |