diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 21:04:39 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-07-25 21:04:39 +0200 |
commit | b08ab954e8e9bbb357a97f3696fd8065ecd5596a (patch) | |
tree | cd55cead2dfe57f8df5652ad0ca114ce79bd19d5 /ax25ipd | |
parent | d1fef897adde71bfa4e94d810c9d8cde40455a85 (diff) |
ax25ipd: Sort out prototype for term_handler().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd')
-rw-r--r-- | ax25ipd/ax25ipd.c | 14 | ||||
-rw-r--r-- | ax25ipd/ax25ipd.h | 3 |
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; |