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 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ax25ipd/ax25ipd.c') 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); -} -- cgit v1.2.3