From fda90b29606f8d91952b5f94c08d36bd03c4bf5e Mon Sep 17 00:00:00 2001 From: "/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net" Date: Mon, 21 Apr 2008 12:24:24 +0000 Subject: [patch]iptables-save:remove unnecessary code. The following code is never be used. It should be removed. Signed-off-by: Shan Wei --- iptables-save.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'iptables-save.c') diff --git a/iptables-save.c b/iptables-save.c index 51127cd..e8bdda2 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) { -- cgit v1.2.3