aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/netlink.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-10-18 14:00:08 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-18 14:00:08 (GMT)
commitea08bfe3847c7075c7fab802441a519dd02c7654 (patch)
tree05a33d90695916095210a7c1afaf2abbe56159a2 /src/drivers/netlink.c
parent39b97072b2a45551e6f20e6251eeaca269f22a2d (diff)
downloadhostap-ea08bfe3847c7075c7fab802441a519dd02c7654.zip
hostap-ea08bfe3847c7075c7fab802441a519dd02c7654.tar.gz
hostap-ea08bfe3847c7075c7fab802441a519dd02c7654.tar.bz2
netlink: Do not use void pointer for pointer arithmetic
This is a non-standard extension in gcc, so better not depend on it.
Diffstat (limited to 'src/drivers/netlink.c')
-rw-r--r--src/drivers/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/netlink.c b/src/drivers/netlink.c
index ad15b1d..6778907 100644
--- a/src/drivers/netlink.c
+++ b/src/drivers/netlink.c
@@ -34,7 +34,7 @@ static void netlink_receive_link(struct netlink_data *netlink,
if (cb == NULL || NLMSG_PAYLOAD(h, 0) < sizeof(struct ifinfomsg))
return;
cb(netlink->cfg->ctx, NLMSG_DATA(h),
- NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)),
+ (u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)),
NLMSG_PAYLOAD(h, sizeof(struct ifinfomsg)));
}