diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-08-12 16:38:44 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-09-05 23:13:14 +0200 |
commit | 2778ae2b8f7780fd0bebb520aa0900b5418aad93 (patch) | |
tree | d5686e982dcb2c21165d3a078b6ba65d4e6cc0af /lib | |
parent | 1b6e8e7b5e5adeddebb0a7c241b65306900a2668 (diff) |
lib/tun: Mark internal helper functions 'static'
Change-Id: I53a8a89abb0080a39a153e9d3864c17b29aa193c
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tun.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |