summaryrefslogtreecommitdiffstats
path: root/ax25ipd/ax25ipd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ax25ipd/ax25ipd.c')
-rw-r--r--ax25ipd/ax25ipd.c14
1 files changed, 7 insertions, 7 deletions
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);
-}