From f7cfd408bee4a14f705565a95f98caf3c35bd57e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 25 Oct 2010 23:52:58 +0200 Subject: examples: remove redundant casts --- examples/netfilter/nf-queue.c | 2 +- examples/netfilter/nfct-event.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/netfilter') diff --git a/examples/netfilter/nf-queue.c b/examples/netfilter/nf-queue.c index 8b1a5e7..3658ba2 100644 --- a/examples/netfilter/nf-queue.c +++ b/examples/netfilter/nf-queue.c @@ -23,7 +23,7 @@ static int parse_attr_cb(const struct nlattr *attr, void *data) { - const struct nlattr **tb = (const struct nlattr **)data; + const struct nlattr **tb = data; int type = mnl_attr_get_type(attr); /* skip unsupported attribute in user-space */ diff --git a/examples/netfilter/nfct-event.c b/examples/netfilter/nfct-event.c index 3a87071..660d443 100644 --- a/examples/netfilter/nfct-event.c +++ b/examples/netfilter/nfct-event.c @@ -15,7 +15,7 @@ static int parse_ip_cb(const struct nlattr *attr, void *data) { - const struct nlattr **tb = (const struct nlattr **)data; + const struct nlattr **tb = data; int type = mnl_attr_get_type(attr); if (mnl_attr_type_valid(attr, CTA_IP_MAX) < 0) @@ -51,7 +51,7 @@ static void print_ip(const struct nlattr *nest) static int parse_proto_cb(const struct nlattr *attr, void *data) { - const struct nlattr **tb = (const struct nlattr **)data; + const struct nlattr **tb = data; int type = mnl_attr_get_type(attr); if (mnl_attr_type_valid(attr, CTA_PROTO_MAX) < 0) @@ -109,7 +109,7 @@ static void print_proto(const struct nlattr *nest) static int parse_tuple_cb(const struct nlattr *attr, void *data) { - const struct nlattr **tb = (const struct nlattr **)data; + const struct nlattr **tb = data; int type = mnl_attr_get_type(attr); if (mnl_attr_type_valid(attr, CTA_TUPLE_MAX) < 0) @@ -148,7 +148,7 @@ static void print_tuple(const struct nlattr *nest) static int data_attr_cb(const struct nlattr *attr, void *data) { - const struct nlattr **tb = (const struct nlattr **)data; + const struct nlattr **tb = data; int type = mnl_attr_get_type(attr); if (mnl_attr_type_valid(attr, CTA_MAX) < 0) -- cgit v1.2.3