Date: Thu, 18 Dec 2008 04:03:29 +0000 (UTC) From: Tai-hwa Liang <avatar@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186263 - head/usr.sbin/syslogd Message-ID: <200812180403.mBI43TDG025475@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avatar Date: Thu Dec 18 04:03:29 2008 New Revision: 186263 URL: http://svn.freebsd.org/changeset/base/186263 Log: Fixing !INET6 builds after bumping WARNS to 3. Modified: head/usr.sbin/syslogd/syslogd.c Modified: head/usr.sbin/syslogd/syslogd.c ============================================================================== --- head/usr.sbin/syslogd/syslogd.c Thu Dec 18 01:36:46 2008 (r186262) +++ head/usr.sbin/syslogd/syslogd.c Thu Dec 18 04:03:29 2008 (r186263) @@ -2185,10 +2185,13 @@ allowaddr(char *s) char *cp1, *cp2; struct allowedpeer ap; struct servent *se; - int masklen = -1, i; + int masklen = -1; struct addrinfo hints, *res; struct in_addr *addrp, *maskp; +#ifdef INET6 + int i; u_int32_t *addr6p, *mask6p; +#endif char ip[NI_MAXHOST]; #ifdef INET6 @@ -2344,12 +2347,15 @@ allowaddr(char *s) static int validate(struct sockaddr *sa, const char *hname) { - int i, j, reject; + int i; size_t l1, l2; char *cp, name[NI_MAXHOST], ip[NI_MAXHOST], port[NI_MAXSERV]; struct allowedpeer *ap; struct sockaddr_in *sin4, *a4p = NULL, *m4p = NULL; +#ifdef INET6 + int j, reject; struct sockaddr_in6 *sin6, *a6p = NULL, *m6p = NULL; +#endif struct addrinfo hints, *res; u_short sport;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812180403.mBI43TDG025475>