From f42b5dbebb3c8c41eeaa0794bc312a3f67edb7f2 Mon Sep 17 00:00:00 2001 From: Darren Reed Date: Fri, 17 Dec 2004 15:59:16 +0000 Subject: [PATCH] Move two variables that are unused if LARGE_NAT is defined inside an #ifdef to keep them out of harms way when compiling. PR: 72783 --- sys/contrib/ipfilter/netinet/ip_nat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/contrib/ipfilter/netinet/ip_nat.c b/sys/contrib/ipfilter/netinet/ip_nat.c index 997b59dfa15..ead93abe3ec 100644 --- a/sys/contrib/ipfilter/netinet/ip_nat.c +++ b/sys/contrib/ipfilter/netinet/ip_nat.c @@ -2879,11 +2879,14 @@ void nat_log(nat, type) struct nat *nat; u_int type; { +# ifdef LARGE_NAT struct ipnat *np; + int rulen; +# endif struct natlog natl; void *items[1]; size_t sizes[1]; - int rulen, types[1]; + int types[1]; natl.nl_inip = nat->nat_inip; natl.nl_outip = nat->nat_outip;