]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables-save:remove unnecessary code.
authorShan Wei <shanwei@cn.fujitsu.com>
Mon, 21 Apr 2008 10:23:38 +0000 (10:23 +0000)
committerPatrick McHardy <kaber@trash.net>
Mon, 21 Apr 2008 12:24:24 +0000 (14:24 +0200)
The following code is never be used. It should be removed.

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

index 51127cde8b3aadc0390931abab9073331af34284..e8bdda2b50377d0df5bb201fb476a0b33694c928 100644 (file)
@@ -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)
 {