All of lore.kernel.org
 help / color / mirror / Atom feed
* libmnl cast remover
@ 2010-10-30 20:35 Jan Engelhardt
  2010-10-30 20:35 ` [PATCH] examples: remove redundant casts Jan Engelhardt
  2010-11-01 21:26 ` libmnl cast remover Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Engelhardt @ 2010-10-30 20:35 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel


The following changes since commit bae340593494739f873a2e00d6c8bcfc3777edc1:

  attr: rename str_null from NULL away (2010-10-25 00:44:00 +0200)

are available in the git repository at:
  git://dev.medozas.de/libmnl master

Jan Engelhardt (1):
      examples: remove redundant casts

 examples/genl/genl-family-get.c |    6 +++---
 examples/netfilter/nf-queue.c   |    2 +-
 examples/netfilter/nfct-event.c |    8 ++++----
 examples/rtnl/rtnl-link-dump.c  |    2 +-
 examples/rtnl/rtnl-link-event.c |    2 +-
 examples/rtnl/rtnl-route-dump.c |    2 +-
 6 files changed, 11 insertions(+), 11 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] examples: remove redundant casts
  2010-10-30 20:35 libmnl cast remover Jan Engelhardt
@ 2010-10-30 20:35 ` Jan Engelhardt
  2010-11-01 21:26 ` libmnl cast remover Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Engelhardt @ 2010-10-30 20:35 UTC (permalink / raw)
  To: pablo; +Cc: netfilter-devel

---
 examples/genl/genl-family-get.c |    6 +++---
 examples/netfilter/nf-queue.c   |    2 +-
 examples/netfilter/nfct-event.c |    8 ++++----
 examples/rtnl/rtnl-link-dump.c  |    2 +-
 examples/rtnl/rtnl-link-event.c |    2 +-
 examples/rtnl/rtnl-route-dump.c |    2 +-
 6 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/examples/genl/genl-family-get.c b/examples/genl/genl-family-get.c
index be8da3c..ba8291e 100644
--- a/examples/genl/genl-family-get.c
+++ b/examples/genl/genl-family-get.c
@@ -14,7 +14,7 @@
 
 static int parse_mc_grps_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 */
@@ -61,7 +61,7 @@ static void parse_genl_mc_grps(struct nlattr *nested)
 
 static int parse_family_ops_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, CTRL_ATTR_OP_MAX) < 0)
@@ -104,7 +104,7 @@ static void parse_genl_family_ops(struct nlattr *nested)
 
 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, CTRL_ATTR_MAX) < 0)
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)
diff --git a/examples/rtnl/rtnl-link-dump.c b/examples/rtnl/rtnl-link-dump.c
index 76e6c2c..3fe3d95 100644
--- a/examples/rtnl/rtnl-link-dump.c
+++ b/examples/rtnl/rtnl-link-dump.c
@@ -16,7 +16,7 @@
 
 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);
 
 	/* skip unsupported attribute in user-space */
diff --git a/examples/rtnl/rtnl-link-event.c b/examples/rtnl/rtnl-link-event.c
index 83c516c..9338e12 100644
--- a/examples/rtnl/rtnl-link-event.c
+++ b/examples/rtnl/rtnl-link-event.c
@@ -15,7 +15,7 @@
 
 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);
 
 	/* skip unsupported attribute in user-space */
diff --git a/examples/rtnl/rtnl-route-dump.c b/examples/rtnl/rtnl-route-dump.c
index 7e86017..3622c1b 100644
--- a/examples/rtnl/rtnl-route-dump.c
+++ b/examples/rtnl/rtnl-route-dump.c
@@ -73,7 +73,7 @@ static void attributes_show_ipv4(struct nlattr *tb[])
 
 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);
 
 	/* skip unsupported attribute in user-space */
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: libmnl cast remover
  2010-10-30 20:35 libmnl cast remover Jan Engelhardt
  2010-10-30 20:35 ` [PATCH] examples: remove redundant casts Jan Engelhardt
@ 2010-11-01 21:26 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2010-11-01 21:26 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: netfilter-devel

On 30/10/10 22:35, Jan Engelhardt wrote:
> The following changes since commit bae340593494739f873a2e00d6c8bcfc3777edc1:
> 
>   attr: rename str_null from NULL away (2010-10-25 00:44:00 +0200)
> 
> are available in the git repository at:
>   git://dev.medozas.de/libmnl master

Pulled and pushed, thanks Jan!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-01 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-30 20:35 libmnl cast remover Jan Engelhardt
2010-10-30 20:35 ` [PATCH] examples: remove redundant casts Jan Engelhardt
2010-11-01 21:26 ` libmnl cast remover Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.