[lkml]   [2002]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH] [TRIVIAL] ip_nat_core.c - fix compiler warning
If netfilter is build w/o CONFIG_IP_NF_NAT_LOCAL, gcc will complain that
do_extra_mangle() is not used. So only compile the function when
IP_NF_NAT_LOCAL is defined. Patch is against 2.4.19-pre10.


--- linux-clean/net/ipv4/netfilter/ip_nat_core.c Fri Jun 7 23:42:15 2002
+++ linux-dirty/net/ipv4/netfilter/ip_nat_core.c Sat Jun 8 12:12:46 2002
@@ -198,6 +198,7 @@
return NULL;

/* If it's really a local destination manip, it may need to do a
source manip too. */
static int
@@ -216,6 +217,7 @@
return 1;

/* Simple way to iterate through all. */
static inline int fake_cmp(const struct ip_nat_hash *i,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at
 \ /
  Last update: 2005-03-22 13:26    [W:0.029 / U:3.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site