cvs commit: src/sys/contrib/ipfilter/netinet ip_nat.c
Johan Karlsson
johan at FreeBSD.org
Sun Jul 3 00:57:32 GMT 2005
On Fri, Dec 17, 2004 at 15:59 (+0000), Darren Reed wrote:
> darrenr 2004-12-17 15:59:16 UTC
>
> FreeBSD src repository
>
> Modified files: (Branch: RELENG_5)
> sys/contrib/ipfilter/netinet ip_nat.c
> Log:
> Move two variables that are unused if LARGE_NAT is defined inside an #ifdef
> to keep them out of harms way when compiling.
I belive this is the offending commit and the correct version should use #ifndef
cc -O -pipe -DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" -DIPFILTER_LOG
+-I/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter/netinet
+-I/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter
+-I/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../contrib/ipfilter -c
+/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter/netinet/ip_nat.c
/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter/netinet/ip_nat.c: In function
+`nat_log':
/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter/netinet/ip_nat.c:2904: error:
+`rulen' undeclared (first use in this function)
/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter/netinet/ip_nat.c:2904: error:
+(Each undeclared identifier is reported only once
/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter/netinet/ip_nat.c:2904: error: for
+each function it appears in.)
/tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest/../../sys/contrib/ipfilter/netinet/ip_nat.c:2904: error: `np'
+undeclared (first use in this function)
*** Error code 1
Stop in /tinderbox/RELENG_5/sparc64/sparc64/src/usr.sbin/ipftest.
*** Error code 1
/Johan K
--
Johan Karlsson mailto:johan at FreeBSD.org
More information about the cvs-src
mailing list