diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-29 23:52:03 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-29 23:52:03 +0100 |
commit | 0834ff93c3ec4d22ce58ae84baae8bb3126da0b6 (patch) | |
tree | e2029ea912b64cc5794fd1542552f44627b3173a /src/libsystemd | |
parent | aef0768e6c74c5be7c3422926efd46009342e9c6 (diff) |
sd-rtnl: message - fix clang compile warning
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-rtnl/rtnl-message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c index cfce7659aa..5265184098 100644 --- 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; |