From b08ab954e8e9bbb357a97f3696fd8065ecd5596a Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Jul 2017 21:04:39 +0200 Subject: ax25ipd: Sort out prototype for term_handler(). Signed-off-by: Ralf Baechle --- ax25ipd/ax25ipd.c | 14 +++++++------- ax25ipd/ax25ipd.h | 3 --- 2 files changed, 7 insertions(+), 10 deletions(-) (limited to 'ax25ipd') diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c index 70d0200..f63eb91 100644 --- a/ax25ipd/ax25ipd.c +++ b/ax25ipd/ax25ipd.c @@ -132,6 +132,13 @@ static void int_handler(int i) exit(1); } +static void term_handler(int i) +{ + printf("\nSIGTERM!\n"); + do_stats(); + exit(1); +} + int main(int argc, char **argv) { if (setjmp(restart_env) == 0) { @@ -255,10 +262,3 @@ int main(int argc, char **argv) return 0; } - -void term_handler(int i) -{ - printf("\nSIGTERM!\n"); - do_stats(); - exit(1); -} diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h index a30185e..d9a9014 100644 --- a/ax25ipd/ax25ipd.h +++ b/ax25ipd/ax25ipd.h @@ -175,9 +175,6 @@ unsigned short int pppfcs(unsigned short, unsigned char *, int); unsigned short int compute_crc(unsigned char *, int); int ok_crc(unsigned char *, int); -/* ax25ipd.c */ -void term_handler(int); - /* io.c */ extern int ttyfd_bpq; extern int ttyfd; -- cgit v1.2.3