projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39b9707
)
netlink: Do not use void pointer for pointer arithmetic
author
Jouni Malinen
<jouni@qca.qualcomm.com>
Tue, 18 Oct 2011 14:00:08 +0000
(17:00 +0300)
committer
Jouni Malinen
<j@w1.fi>
Tue, 18 Oct 2011 14:00:08 +0000
(17:00 +0300)
This is a non-standard extension in gcc, so better not depend on it.
src/drivers/netlink.c
patch
|
blob
|
history
diff --git
a/src/drivers/netlink.c
b/src/drivers/netlink.c
index
ad15b1d
..
6778907
100644
(file)
--- 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)));
}