aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-12 16:38:44 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-12 18:28:33 +0200
commitccc02af6472398d2edef40cf0d67cc1bcab2d87f (patch)
tree46ab095a99857523dc62af1597e298377934a703
parent766275ab7918ffed0cfde7d20009ed640dbab5e3 (diff)
lib/tun: Mark internal helper functions 'static'
-rw-r--r--lib/tun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tun.c b/lib/tun.c
index d97f2e6..76ac379 100644
--- a/lib/tun.c
+++ b/lib/tun.c
@@ -67,7 +67,7 @@ static int tun_setaddr4(struct tun_t *this, struct in_addr *addr,
#include <linux/ipv6.h>
-int tun_nlattr(struct nlmsghdr *n, int nsize, int type, void *d, int dlen)
+static int tun_nlattr(struct nlmsghdr *n, int nsize, int type, void *d, int dlen)
{
int len = RTA_LENGTH(dlen);
int alen = NLMSG_ALIGN(n->nlmsg_len);
@@ -82,7 +82,7 @@ int tun_nlattr(struct nlmsghdr *n, int nsize, int type, void *d, int dlen)
}
#endif
-int tun_sifflags(struct tun_t *this, int flags)
+static int tun_sifflags(struct tun_t *this, int flags)
{
struct ifreq ifr;
int fd;
@@ -468,7 +468,7 @@ int tun_setaddr(struct tun_t *this, struct in46_addr *addr, struct in46_addr *ds
}
}
-int tun_route(struct tun_t *this,
+static int tun_route(struct tun_t *this,
struct in_addr *dst,
struct in_addr *gateway, struct in_addr *mask, int delete)
{