diff options
author | darrenr <darrenr@FreeBSD.org> | 2004-12-17 15:59:16 +0000 |
---|---|---|
committer | darrenr <darrenr@FreeBSD.org> | 2004-12-17 15:59:16 +0000 |
commit | 62b778ce284c5a88e535aee8b5e1afc0f4594120 (patch) | |
tree | 93574c26f91f759c96e9850b4cb2dafe6a4d6e84 | |
parent | 9f8908c9d1af04891dac55c4613c461126a88bce (diff) | |
download | FreeBSD-src-62b778ce284c5a88e535aee8b5e1afc0f4594120.zip FreeBSD-src-62b778ce284c5a88e535aee8b5e1afc0f4594120.tar.gz |
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
-rw-r--r-- | sys/contrib/ipfilter/netinet/ip_nat.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_nat.c b/sys/contrib/ipfilter/netinet/ip_nat.c index 997b59d..ead93ab 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; |