diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 20:55:54 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 20:55:54 +0200 |
commit | 6d230545e4b9ed1a2e20bd15ea2fa8b54e8a4245 (patch) | |
tree | 3297e7af9568934e79cb3424fb74014e2c407033 /ax25ipd/ax25ipd.c | |
parent | dd7669d41c5abf1609a76d525bdcd427fa9e3d3c (diff) |
ax25ipd: Sort out prototypes for hupper().
There were two - and they can be avoided entirely.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/ax25ipd.c')
-rw-r--r-- | ax25ipd/ax25ipd.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c index a7068f0..28e5c38 100644 --- a/ax25ipd/ax25ipd.c +++ b/ax25ipd/ax25ipd.c @@ -43,9 +43,6 @@ int dual_port; /* addition for dual port flag */ static jmp_buf restart_env; -/* Prototypes */ -void hupper(int); - static int opt_version; static int opt_loglevel; static int opt_nofork; @@ -63,6 +60,12 @@ static struct option options[] = { {NULL, 0, NULL, 0} }; +static void hupper(int i) +{ + printf("\nSIGHUP!\n"); + longjmp(restart_env, 1); +} + static void greet_world(void) { printf("\nax25ipd %s / %s\n", VERSION); @@ -240,12 +243,6 @@ static void do_stats(void) loglevel = save_loglevel; } -void hupper(int i) -{ - printf("\nSIGHUP!\n"); - longjmp(restart_env, 1); -} - void usr1_handler(int i) { printf("\nSIGUSR1!\n"); |