From ee3a6a51e5b098aa0c9641ed71d275c459ad2f5a Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 14 Feb 2014 22:39:48 +0100 Subject: sd-rtnl: message_open_container - don't take a 'size' argument We can always know the size based on the type, so let's do this inside the library. --- src/nspawn/nspawn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nspawn') diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 51a1a6651d..fcc0f17aee 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -1303,7 +1303,7 @@ static int setup_veth(int netns_fd) { return r; } - r = sd_rtnl_message_open_container(m, IFLA_LINKINFO, 0); + r = sd_rtnl_message_open_container(m, IFLA_LINKINFO); if (r < 0) { log_error("Failed to open netlink container: %s", strerror(-r)); return r; @@ -1315,13 +1315,13 @@ static int setup_veth(int netns_fd) { return r; } - r = sd_rtnl_message_open_container(m, IFLA_INFO_DATA, 0); + r = sd_rtnl_message_open_container(m, IFLA_INFO_DATA); if (r < 0) { log_error("Failed to open netlink container: %s", strerror(-r)); return r; } - r = sd_rtnl_message_open_container(m, VETH_INFO_PEER, sizeof(struct ifinfomsg)); + r = sd_rtnl_message_open_container(m, VETH_INFO_PEER); if (r < 0) { log_error("z Failed to open netlink container: %s", strerror(-r)); return r; -- cgit v1.2.3-54-g00ecf