projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef0768
)
sd-rtnl: message - fix clang compile warning
author
Tom Gundersen
<teg@jklm.no>
Sat, 29 Mar 2014 22:52:03 +0000
(23:52 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Sat, 29 Mar 2014 22:52:03 +0000
(23:52 +0100)
src/libsystemd/sd-rtnl/rtnl-message.c
patch
|
blob
|
history
diff --git
a/src/libsystemd/sd-rtnl/rtnl-message.c
b/src/libsystemd/sd-rtnl/rtnl-message.c
index
cfce765
..
5265184
100644
(file)
--- a/
src/libsystemd/sd-rtnl/rtnl-message.c
+++ b/
src/libsystemd/sd-rtnl/rtnl-message.c
@@
-1085,7
+1085,8
@@
int sd_rtnl_message_rewind(sd_rtnl_message *m) {
&m->rta_offset_tb[m->n_containers],
&m->rta_tb_size[m->n_containers],
type_system->max,
- (char*)NLMSG_DATA(m->hdr) + NLMSG_ALIGN(type->size),
+ (struct rtattr*)((uint8_t*)NLMSG_DATA(m->hdr) +
+ NLMSG_ALIGN(type->size)),
NLMSG_PAYLOAD(m->hdr, type->size));
if (r < 0)
return r;