summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_MARK.c
diff options
context:
space:
mode:
author/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org>2007-07-24 06:02:05 +0000
committer/C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org </C=JP/ST=JP/CN=Yasuyuki Kozakai/emailAddress=yasuyuki@netfilter.org>2007-07-24 06:02:05 +0000
commitacf595d0c6c2f6921d6a4cdfbf1840ef6a7e6c66 (patch)
tree7848fd9b5f64a8bab4fd9e5ff31b890ccd53339f /extensions/libipt_MARK.c
parente690c8c9816c477797cabd4a6ed0de847be8eb38 (diff)
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)
Diffstat (limited to 'extensions/libipt_MARK.c')
-rw-r--r--extensions/libipt_MARK.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/libipt_MARK.c b/extensions/libipt_MARK.c
index 8157f1e..62329ab 100644
--- a/extensions/libipt_MARK.c
+++ b/extensions/libipt_MARK.c
@@ -39,7 +39,7 @@ init(struct xt_entry_target *t, unsigned int *nfcache)
ate an option */
static int
parse_v0(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *entry,
struct xt_entry_target **target)
{
struct ipt_mark_target_info *markinfo
@@ -81,7 +81,7 @@ final_check(unsigned int flags)
ate an option */
static int
parse_v1(int c, char **argv, int invert, unsigned int *flags,
- const struct ipt_entry *entry,
+ const void *entry,
struct xt_entry_target **target)
{
struct ipt_mark_target_info_v1 *markinfo
@@ -120,7 +120,7 @@ print_mark(unsigned long mark)
/* Prints out the targinfo. */
static void
-print_v0(const struct ipt_ip *ip,
+print_v0(const void *ip,
const struct xt_entry_target *target,
int numeric)
{
@@ -132,7 +132,7 @@ print_v0(const struct ipt_ip *ip,
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void
-save_v0(const struct ipt_ip *ip, const struct xt_entry_target *target)
+save_v0(const void *ip, const struct xt_entry_target *target)
{
const struct ipt_mark_target_info *markinfo =
(const struct ipt_mark_target_info *)target->data;
@@ -143,7 +143,7 @@ save_v0(const struct ipt_ip *ip, const struct xt_entry_target *target)
/* Prints out the targinfo. */
static void
-print_v1(const struct ipt_ip *ip,
+print_v1(const void *ip,
const struct xt_entry_target *target,
int numeric)
{
@@ -166,7 +166,7 @@ print_v1(const struct ipt_ip *ip,
/* Saves the union ipt_targinfo in parsable form to stdout. */
static void
-save_v1(const struct ipt_ip *ip, const struct xt_entry_target *target)
+save_v1(const void *ip, const struct xt_entry_target *target)
{
const struct ipt_mark_target_info_v1 *markinfo =
(const struct ipt_mark_target_info_v1 *)target->data;