summaryrefslogtreecommitdiffstats
path: root/iptables-save.c
diff options
context:
space:
mode:
authorShan Wei <shanwei@cn.fujitsu.com>2008-04-21 10:23:38 +0000
committerPatrick McHardy <kaber@trash.net>2008-04-21 14:24:24 +0200
commit74a8854c2f3184e84d0e64c32cd991520a451a92 (patch)
tree5d155347cf76f02dc7800564b9db83ca314f11e5 /iptables-save.c
parent455559beb81560664aff097a7797863fdb3c32eb (diff)
iptables-save:remove unnecessary code.
The following code is never be used. It should be removed. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Diffstat (limited to 'iptables-save.c')
-rw-r--r--iptables-save.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/iptables-save.c b/iptables-save.c
index 51127cde..e8bdda2b 100644
--- a/iptables-save.c
+++ b/iptables-save.c
@@ -106,19 +106,6 @@ static void print_proto(u_int16_t proto, int invert)
}
}
-#if 0
-static int non_zero(const void *ptr, size_t size)
-{
- unsigned int i;
-
- for (i = 0; i < size; i++)
- if (((char *)ptr)[i])
- return 0;
-
- return 1;
-}
-#endif
-
static int print_match(const struct ipt_entry_match *e,
const struct ipt_ip *ip)
{