[systemd-commits] 2 commits - src/libsystemd
Tom Gundersen
tomegun at kemper.freedesktop.org
Sat Mar 29 16:00:30 PDT 2014
src/libsystemd/sd-rtnl/rtnl-message.c | 3 ++-
src/libsystemd/sd-rtnl/rtnl-types.c | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 3cbbb3e6787ad002cae3e1c80179af7d4d6cf9e7
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Mar 29 23:53:03 2014 +0100
sd-rtnl: types - hook up bond types
Reported by Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
diff --git a/src/libsystemd/sd-rtnl/rtnl-types.c b/src/libsystemd/sd-rtnl/rtnl-types.c
index 936073e..29ee5bc 100644
--- a/src/libsystemd/sd-rtnl/rtnl-types.c
+++ b/src/libsystemd/sd-rtnl/rtnl-types.c
@@ -122,6 +122,8 @@ static const char* const nl_union_link_info_data_table[_NL_UNION_LINK_INFO_DATA_
DEFINE_STRING_TABLE_LOOKUP(nl_union_link_info_data, NLUnionLinkInfoData);
static const NLTypeSystem rtnl_link_info_data_type_systems[_NL_UNION_LINK_INFO_DATA_MAX] = {
+ [NL_UNION_LINK_INFO_DATA_BOND] = { .max = ELEMENTSOF(rtnl_link_info_data_bond_types) - 1,
+ .types = rtnl_link_info_data_bond_types },
[NL_UNION_LINK_INFO_DATA_BRIDGE] = { .max = ELEMENTSOF(rtnl_link_info_data_bridge_types) - 1,
.types = rtnl_link_info_data_bridge_types },
[NL_UNION_LINK_INFO_DATA_VLAN] = { .max = ELEMENTSOF(rtnl_link_info_data_vlan_types) - 1,
commit 0834ff93c3ec4d22ce58ae84baae8bb3126da0b6
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Mar 29 23:52:03 2014 +0100
sd-rtnl: message - fix clang compile warning
diff --git a/src/libsystemd/sd-rtnl/rtnl-message.c b/src/libsystemd/sd-rtnl/rtnl-message.c
index cfce765..5265184 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;
More information about the systemd-commits
mailing list