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