summaryrefslogtreecommitdiffstats
path: root/contrib/tcp_wrappers
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2013-10-30 22:45:35 +0000
committersbruno <sbruno@FreeBSD.org>2013-10-30 22:45:35 +0000
commit5a08a2da6021292129d7d746d426f1471de64508 (patch)
treea5d29cb51615d20453fee5be209502a3fa3e9ea6 /contrib/tcp_wrappers
parentca2b647a8ac8e15db45c639f7d714725b765e8c4 (diff)
downloadFreeBSD-src-5a08a2da6021292129d7d746d426f1471de64508.zip
FreeBSD-src-5a08a2da6021292129d7d746d426f1471de64508.tar.gz
Queisce warning about undeclared function usage.
yp_get_default_domain is defined in workaround.c but is not declared in any header file. Tie the declaration to the same #define conditional used when the function is called, NETGROUP
Diffstat (limited to 'contrib/tcp_wrappers')
-rw-r--r--contrib/tcp_wrappers/hosts_access.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/tcp_wrappers/hosts_access.c b/contrib/tcp_wrappers/hosts_access.c
index c903705..af0433b 100644
--- a/contrib/tcp_wrappers/hosts_access.c
+++ b/contrib/tcp_wrappers/hosts_access.c
@@ -103,6 +103,11 @@ static int masked_match6();
#define BUFLEN 2048
+/* definition to be used from workarounds.c */
+#ifdef NETGROUP
+int yp_get_default_domain(char **);
+#endif
+
/* hosts_access - host access control facility */
int hosts_access(request)
OpenPOWER on IntegriCloud