From: Shan Wei Date: Mon, 21 Apr 2008 10:23:38 +0000 (+0000) Subject: iptables-save:remove unnecessary code. X-Git-Tag: v1.4.1-rc1~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74a8854c2f3184e84d0e64c32cd991520a451a92;p=thirdparty%2Fiptables.git iptables-save:remove unnecessary code. The following code is never be used. It should be removed. Signed-off-by: Shan Wei --- 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) {