summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-10-04 07:34:34 +0000
committerguenther <guenther@openbsd.org>2015-10-04 07:34:34 +0000
commita9f15adbce7fe6581bb7441c1d313c057bdac0ce (patch)
treefbdf523b29ce317345d2335f12bf0e714e5e1225 /lib/libc
parentwrap _fwalk() so internal calls are direct (at least until we stop (diff)
downloadwireguard-openbsd-a9f15adbce7fe6581bb7441c1d313c057bdac0ce.tar.xz
wireguard-openbsd-a9f15adbce7fe6581bb7441c1d313c057bdac0ce.zip
wrap __ivaliduser_sa() so the internal call is direct (at least until we
stop exporting it)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/ruserok.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/net/ruserok.c b/lib/libc/net/ruserok.c
index 4e83b78bf66..88c89ac40fa 100644
--- a/lib/libc/net/ruserok.c
+++ b/lib/libc/net/ruserok.c
@@ -51,6 +51,7 @@
int __ivaliduser(FILE *, in_addr_t, const char *, const char *);
int __ivaliduser_sa(FILE *, struct sockaddr *, socklen_t,
const char *, const char *);
+PROTO_NORMAL(__ivaliduser_sa);
static int __icheckhost(struct sockaddr *, socklen_t, const char *);
static char *__gethostloop(struct sockaddr *, socklen_t);
@@ -336,6 +337,7 @@ __ivaliduser_sa(FILE *hostf, struct sockaddr *raddr, socklen_t salen,
bail:
return (-1);
}
+DEF_STRONG(__ivaliduser_sa);
/*
* Returns "true" if match, 0 if no match. If we do not find any