From c83eb3756cbb16269f8d4d8b9fa272868f7047e6 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:06:59 +0000 Subject: Fixes warning on compilation, part 2 This changes the type of arguments as follows in multiport, DNAT, SNAT, MASQUERADE, and REDIRECT - ip[6]t_ip[6] * -> void * - ip[6]t_entry * -> void * and adds lines to cast these pointer with intended type. --- extensions/libipt_REDIRECT.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'extensions/libipt_REDIRECT.c') diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c index 3810b99..ee42eb7 100644 --- a/extensions/libipt_REDIRECT.c +++ b/extensions/libipt_REDIRECT.c @@ -80,9 +80,10 @@ parse_ports(const char *arg, struct ip_nat_multi_range *mr) ate an option */ static int parse(int c, char **argv, int invert, unsigned int *flags, - const struct ipt_entry *entry, + const void *e, struct xt_entry_target **target) { + const struct ipt_entry *entry = e; struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)(*target)->data; int portok; @@ -130,7 +131,7 @@ static void final_check(unsigned int flags) /* Prints out the targinfo. */ static void -print(const struct ipt_ip *ip, +print(const void *ip, const struct xt_entry_target *target, int numeric) { @@ -151,7 +152,7 @@ print(const struct ipt_ip *ip, /* Saves the union ipt_targinfo in parsable form to stdout. */ static void -save(const struct ipt_ip *ip, const struct xt_entry_target *target) +save(const void *ip, const struct xt_entry_target *target) { struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)target->data; -- cgit v1.2.3