diff options
author | Yasuyuki KOZAKAI <yasuyuki@netfilter.org> | 2007-07-24 06:06:59 +0000 |
---|---|---|
committer | Yasuyuki KOZAKAI <yasuyuki@netfilter.org> | 2007-07-24 06:06:59 +0000 |
commit | ac8b2718daf8a79a59b181f6e62495f307ae86b9 (patch) | |
tree | 1200214990da954faf202a8548525b7678ed7a18 /extensions/libipt_MASQUERADE.c | |
parent | a620c61d441b931bc4a52ec07f1b906318ee4069 (diff) |
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.
Diffstat (limited to 'extensions/libipt_MASQUERADE.c')
-rw-r--r-- | extensions/libipt_MASQUERADE.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extensions/libipt_MASQUERADE.c b/extensions/libipt_MASQUERADE.c index 8db6bdd3..0a949391 100644 --- a/extensions/libipt_MASQUERADE.c +++ b/extensions/libipt_MASQUERADE.c @@ -78,9 +78,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; int portok; struct ip_nat_multi_range *mr = (struct ip_nat_multi_range *)(*target)->data; @@ -121,7 +122,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) { @@ -143,7 +144,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; |