From d1fef897adde71bfa4e94d810c9d8cde40455a85 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 25 Jul 2017 21:03:40 +0200 Subject: ax25ipd: Sort out prototypes for int_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 b3fc2f9..70d0200 100644 --- a/ax25ipd/ax25ipd.c +++ b/ax25ipd/ax25ipd.c @@ -125,6 +125,13 @@ static void usr1_handler(int i) do_stats(); } +static void int_handler(int i) +{ + printf("\nSIGINT!\n"); + do_stats(); + exit(1); +} + int main(int argc, char **argv) { if (setjmp(restart_env) == 0) { @@ -249,13 +256,6 @@ int main(int argc, char **argv) return 0; } -void int_handler(int i) -{ - printf("\nSIGINT!\n"); - do_stats(); - exit(1); -} - void term_handler(int i) { printf("\nSIGTERM!\n"); -- cgit v1.2.3