diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-10-25 23:52:58 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-10-30 22:22:52 +0200 |
commit | f7cfd408bee4a14f705565a95f98caf3c35bd57e (patch) | |
tree | 5725129a5d3aef57c6bbe2402e5a989ee640e40d /examples/genl | |
parent | bae340593494739f873a2e00d6c8bcfc3777edc1 (diff) | |
download | libmnl-f7cfd408bee4a14f705565a95f98caf3c35bd57e.tar.gz libmnl-f7cfd408bee4a14f705565a95f98caf3c35bd57e.zip |
examples: remove redundant casts
Diffstat (limited to 'examples/genl')
-rw-r--r-- | examples/genl/genl-family-get.c | 6 |
1 files changed, 3 insertions, 3 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) |