Skip to contentSkip to conversation

iptables-save:remove unnecessary code.

PATCH In review Shan Wei 2 participants 2 messages Apr 21, 2008 netfilter

lore
Share & tools
lore

Shan Wei

author
#0 lore raw

PATCH 1/1 iptables-save:remove unnecessary code.

The following code is never be used. It should be removed.

iptables-save.c 2008-04-11 21:28:57.000000000 +0800 renamed from iptables-save.org 2008-04-15 20:01:06.000000000 +0800 +0 -0
@@ -106,19 +106,6 @@ static void print_proto(u_int16_t proto,

}
}

-#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)
{

#1 lore raw
Quoted 1 line · Shan Wei

The following code is never be used. It should be removed.

Your patch is whitespace-mangled, so I removed it manually. Please make sure your patches apply properly by sending them to yourself first.