summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-07-25 21:03:40 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-07-25 21:03:40 +0200
commitd1fef897adde71bfa4e94d810c9d8cde40455a85 (patch)
tree91041f64e6194488ab9c775695df1483216f3ac5
parent6509abc16fd5726d1227fbcbbfb69c62df67a04b (diff)
ax25ipd: Sort out prototypes for int_handler().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25ipd/ax25ipd.c14
-rw-r--r--ax25ipd/ax25ipd.h1
2 files changed, 7 insertions, 8 deletions
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");
diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h
index 76f5d35..a30185e 100644
--- a/ax25ipd/ax25ipd.h
+++ b/ax25ipd/ax25ipd.h
@@ -176,7 +176,6 @@ unsigned short int compute_crc(unsigned char *, int);
int ok_crc(unsigned char *, int);
/* ax25ipd.c */
-void int_handler(int);
void term_handler(int);
/* io.c */