From: Rusty Russell Date: Fri, 1 Sep 2000 06:03:12 +0000 (+0000) Subject: print and save can be NULL. X-Git-Tag: v1.2.1~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d01dca3d4e918d0c7d66fab4620050a1c72bca2;p=thirdparty%2Fiptables.git print and save can be NULL. --- diff --git a/extensions/libipt_MIRROR.c b/extensions/libipt_MIRROR.c index fdaa6650..b4d9a07c 100644 --- a/extensions/libipt_MIRROR.c +++ b/extensions/libipt_MIRROR.c @@ -41,20 +41,6 @@ final_check(unsigned int flags) { } -/* Prints out the targinfo. */ -static void -print(const struct ipt_ip *ip, - const struct ipt_entry_target *target, - int numeric) -{ -} - -/* Saves the union ipt_targinfo in parsable form to stdout. */ -static void -save(const struct ipt_ip *ip, const struct ipt_entry_target *target) -{ -} - struct iptables_target mirror = { NULL, "MIRROR", @@ -65,8 +51,8 @@ struct iptables_target mirror &init, &parse, &final_check, - &print, - &save, + NULL, /* print */ + NULL, /* save */ opts }; diff --git a/extensions/libipt_unclean.c b/extensions/libipt_unclean.c index c433bc7c..b954e368 100644 --- a/extensions/libipt_unclean.c +++ b/extensions/libipt_unclean.c @@ -41,11 +41,6 @@ static void final_check(unsigned int flags) { } -/* Saves the union ipt_matchinfo in parsable form to stdout. */ -static void save(const struct ipt_ip *ip, const struct ipt_entry_match *match) -{ -} - struct iptables_match unclean = { NULL, "unclean", @@ -57,7 +52,7 @@ struct iptables_match unclean &parse, &final_check, NULL, /* print */ - &save, + NULL, /* save */ opts };