]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: NAT: silence unused variable warnings with CONFIG_XFRM=n
authorPatrick McHardy <kaber@trash.net>
Thu, 4 May 2006 06:19:26 +0000 (23:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 May 2006 06:19:26 +0000 (23:19 -0700)
net/ipv4/netfilter/ip_nat_standalone.c: In function 'ip_nat_out':
net/ipv4/netfilter/ip_nat_standalone.c:223: warning: unused variable 'ctinfo'
net/ipv4/netfilter/ip_nat_standalone.c:222: warning: unused variable 'ct'

Surprisingly no complaints so far ..

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ip_nat_standalone.c

index 8f760b28617e8c5b62f456c77e92f5032a264599..67e676783da9bd9cdf46fea59fcc287d5f9cf277 100644 (file)
@@ -219,8 +219,10 @@ ip_nat_out(unsigned int hooknum,
           const struct net_device *out,
           int (*okfn)(struct sk_buff *))
 {
+#ifdef CONFIG_XFRM
        struct ip_conntrack *ct;
        enum ip_conntrack_info ctinfo;
+#endif
        unsigned int ret;
 
        /* root is playing with raw sockets. */