Date: Wed, 30 Oct 2013 22:45:35 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r257406 - head/contrib/tcp_wrappers Message-ID: <201310302245.r9UMjZbJ082310@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sbruno Date: Wed Oct 30 22:45:35 2013 New Revision: 257406 URL: http://svnweb.freebsd.org/changeset/base/257406 Log: 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 Modified: head/contrib/tcp_wrappers/hosts_access.c Modified: head/contrib/tcp_wrappers/hosts_access.c ============================================================================== --- head/contrib/tcp_wrappers/hosts_access.c Wed Oct 30 22:43:40 2013 (r257405) +++ head/contrib/tcp_wrappers/hosts_access.c Wed Oct 30 22:45:35 2013 (r257406) @@ -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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310302245.r9UMjZbJ082310>