summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/netlink/attr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/netlink/attr.h b/include/netlink/attr.h
index ee159aa..e941a1a 100644
--- a/include/netlink/attr.h
+++ b/include/netlink/attr.h
@@ -325,7 +325,7 @@ extern int nla_is_nested(const struct nlattr *);
* @arg rem initialized to len, holds bytes currently remaining in stream
*/
#define nla_for_each_nested(pos, nla, rem) \
- for (pos = nla_data(nla), rem = nla_len(nla); \
+ for (pos = (struct nlattr *) nla_data(nla), rem = nla_len(nla); \
nla_ok(pos, rem); \
pos = nla_next(pos, &(rem)))