summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-07-25 20:55:54 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-07-25 20:55:54 +0200
commit6d230545e4b9ed1a2e20bd15ea2fa8b54e8a4245 (patch)
tree3297e7af9568934e79cb3424fb74014e2c407033
parentdd7669d41c5abf1609a76d525bdcd427fa9e3d3c (diff)
ax25ipd: Sort out prototypes for hupper().
There were two - and they can be avoided entirely. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--ax25ipd/ax25ipd.c15
-rw-r--r--ax25ipd/ax25ipd.h1
2 files changed, 6 insertions, 10 deletions
diff --git a/ax25ipd/ax25ipd.c b/ax25ipd/ax25ipd.c
index a7068f0..28e5c38 100644
--- a/ax25ipd/ax25ipd.c
+++ b/ax25ipd/ax25ipd.c
@@ -43,9 +43,6 @@ int dual_port; /* addition for dual port flag */
static jmp_buf restart_env;
-/* Prototypes */
-void hupper(int);
-
static int opt_version;
static int opt_loglevel;
static int opt_nofork;
@@ -63,6 +60,12 @@ static struct option options[] = {
{NULL, 0, NULL, 0}
};
+static void hupper(int i)
+{
+ printf("\nSIGHUP!\n");
+ longjmp(restart_env, 1);
+}
+
static void greet_world(void)
{
printf("\nax25ipd %s / %s\n", VERSION);
@@ -240,12 +243,6 @@ static void do_stats(void)
loglevel = save_loglevel;
}
-void hupper(int i)
-{
- printf("\nSIGHUP!\n");
- longjmp(restart_env, 1);
-}
-
void usr1_handler(int i)
{
printf("\nSIGUSR1!\n");
diff --git a/ax25ipd/ax25ipd.h b/ax25ipd/ax25ipd.h
index c6c6099..6b7ea1d 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 hupper(int);
void usr1_handler(int);
void int_handler(int);
void term_handler(int);