diff options
-rw-r--r-- | ax25ipd/ax25ipd.c | 15 | ||||
-rw-r--r-- | ax25ipd/ax25ipd.h | 1 |
2 files changed, 6 insertions, 10 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"); diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h index c6c6099..6b7ea1d 100644 --- a/ax25ipd/ax25ipd.h +++ b/ax25ipd/ax25ipd.h @@ -176,7 +176,6 @@ unsigned short int compute_crc(unsigned char *, int); int ok_crc(unsigned char *, int); /* ax25ipd.c */ -void hupper(int); void usr1_handler(int); void int_handler(int); void term_handler(int); |