From: Shan Wei <shanwei@cn.fujitsu.com>
To: rusty@rustcorp.com.au, laforge@gnumonks.org
Cc: netfilter-devel@vger.kernel.org
Subject: [patch]iptables-save:remove unnecessary code.
Date: Mon, 21 Apr 2008 18:23:38 +0800 [thread overview]
Message-ID: <480C6B2A.9070003@cn.fujitsu.com> (raw)
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)
{
next reply other threads:[~2008-04-21 10:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-21 10:23 Shan Wei [this message]
2008-04-21 12:15 ` [patch]iptables-save:remove unnecessary code Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=480C6B2A.9070003@cn.fujitsu.com \
--to=shanwei@cn.fujitsu.com \
--cc=laforge@gnumonks.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox