From 6d230545e4b9ed1a2e20bd15ea2fa8b54e8a4245 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Jul 2017 20:55:54 +0200 Subject: ax25ipd: Sort out prototypes for hupper(). There were two - and they can be avoided entirely. Signed-off-by: Ralf Baechle --- ax25ipd/ax25ipd.c | 15 ++++++--------- 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); -- cgit v1.2.3