summaryrefslogtreecommitdiffstats
path: root/ax25rtd
diff options
context:
space:
mode:
Diffstat (limited to 'ax25rtd')
-rw-r--r--ax25rtd/ax25rtd.c6
-rw-r--r--ax25rtd/cache_ctl.c4
-rw-r--r--ax25rtd/config.c10
-rw-r--r--ax25rtd/listener.c2
4 files changed, 11 insertions, 11 deletions
diff --git a/ax25rtd/ax25rtd.c b/ax25rtd/ax25rtd.c
index b0b288c..a40cffe 100644
--- a/ax25rtd/ax25rtd.c
+++ b/ax25rtd/ax25rtd.c
@@ -93,13 +93,13 @@ config *port_get_config(char *port)
return NULL;
}
-void sig_reload(int d)
+static void sig_reload(int d)
{
reload = 1;
signal(SIGHUP, sig_reload);
}
-void sig_debug(int d)
+static void sig_debug(int d)
{
fprintf(stderr, "config:\n");
dump_config(2);
@@ -110,7 +110,7 @@ void sig_debug(int d)
signal(SIGUSR1, sig_debug);
}
-void sig_term(int d)
+static void sig_term(int d)
{
save_cache();
daemon_shutdown(0);
diff --git a/ax25rtd/cache_ctl.c b/ax25rtd/cache_ctl.c
index 444fc08..6882a24 100644
--- a/ax25rtd/cache_ctl.c
+++ b/ax25rtd/cache_ctl.c
@@ -216,7 +216,7 @@ ax25_rt_entry *update_ax25_route(config * config, ax25_address * call,
return bp;
}
-ip_rt_entry *remove_ip_route(ip_rt_entry * bp)
+static ip_rt_entry *remove_ip_route(ip_rt_entry * bp)
{
ip_rt_entry *bp2;
@@ -235,7 +235,7 @@ ip_rt_entry *remove_ip_route(ip_rt_entry * bp)
return bp2;
}
-ax25_rt_entry *remove_ax25_route(ax25_rt_entry * bp)
+static ax25_rt_entry *remove_ax25_route(ax25_rt_entry * bp)
{
ax25_rt_entry *bp2;
ip_rt_entry *iprt;
diff --git a/ax25rtd/config.c b/ax25rtd/config.c
index c85b2b2..272da80 100644
--- a/ax25rtd/config.c
+++ b/ax25rtd/config.c
@@ -45,7 +45,7 @@
#include "../pathnames.h"
#include "ax25rtd.h"
-ax25_address *asc2ax(char *call)
+static ax25_address *asc2ax(char *call)
{
static ax25_address callsign;
@@ -65,7 +65,7 @@ static long asc2ip(char *s)
}
-char *prepare_cmdline(char *buf)
+static char *prepare_cmdline(char *buf)
{
char *p;
for (p = buf; *p; p++) {
@@ -87,7 +87,7 @@ char *prepare_cmdline(char *buf)
return buf;
}
-char *get_next_arg(char **p)
+static char *get_next_arg(char **p)
{
char *p2;
@@ -140,7 +140,7 @@ static ax25_address *get_mycall(char *port)
}
-void load_ports(void)
+static void load_ports(void)
{
config *config, *cfg, *ncfg;
char buf[1024];
@@ -218,7 +218,7 @@ void load_ports(void)
}
}
-void load_listeners(void)
+static void load_listeners(void)
{
config *config;
char buf[1024], device[14], call[10], dcall[10];
diff --git a/ax25rtd/listener.c b/ax25rtd/listener.c
index 47431a2..1d9aa1f 100644
--- a/ax25rtd/listener.c
+++ b/ax25rtd/listener.c
@@ -169,7 +169,7 @@ int set_arp(config * config, long ip, ax25_address * call)
*/
#define RT_DEL 0
#define RT_ADD 1
-int iproute2(long ip, char *dev, int what)
+static int iproute2(long ip, char *dev, int what)
{
char buffer[256];
char ipa[32];