All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch]iptables-save:remove unnecessary code.
@ 2008-04-21 10:23 Shan Wei
  2008-04-21 12:15 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Shan Wei @ 2008-04-21 10:23 UTC (permalink / raw)
  To: rusty, laforge; +Cc: netfilter-devel

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


Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>

--- iptables-save.org 2008-04-15 20:01:06.000000000 +0800
+++ iptables-save.c 2008-04-11 21:28:57.000000000 +0800
@@ -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)
{



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-21 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 10:23 [patch]iptables-save:remove unnecessary code Shan Wei
2008-04-21 12:15 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.