From acf595d0c6c2f6921d6a4cdfbf1840ef6a7e6c66 Mon Sep 17 00:00:00 2001 From: "/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org" Date: Tue, 24 Jul 2007 06:02:05 +0000 Subject: Fixes warning on compilation of iptables matches/targets This changes the type of arguments as follows - ipt_ip * -> void * - ipt_entry * -> void * This patch doesn't change multiport, DNAT, SNAT, MASQUERADE, REDIRECT because these need more changes (casting void * variable with intended type) --- extensions/libipt_TTL.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions/libipt_TTL.c') diff --git a/extensions/libipt_TTL.c b/extensions/libipt_TTL.c index 5c88f79..6110e0e 100644 --- a/extensions/libipt_TTL.c +++ b/extensions/libipt_TTL.c @@ -31,7 +31,7 @@ static void help(void) } static int parse(int c, char **argv, int invert, unsigned int *flags, - const struct ipt_entry *entry, + const void *entry, struct xt_entry_target **target) { struct ipt_TTL_info *info = (struct ipt_TTL_info *) (*target)->data; @@ -96,7 +96,7 @@ static void final_check(unsigned int flags) "TTL: You must specify an action"); } -static void save(const struct ipt_ip *ip, +static void save(const void *ip, const struct xt_entry_target *target) { const struct ipt_TTL_info *info = @@ -117,7 +117,7 @@ static void save(const struct ipt_ip *ip, printf("%u ", info->ttl); } -static void print(const struct ipt_ip *ip, +static void print(const void *ip, const struct xt_entry_target *target, int numeric) { const struct ipt_TTL_info *info = -- cgit v1.2.3