summaryrefslogtreecommitdiff
path: root/src/network/networkd-bridge.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-12-06 18:16:16 +0100
committerTom Gundersen <teg@jklm.no>2013-12-16 17:28:18 +0100
commitfc25d7f8050f262fa6cafeb2a1032e6eb3e7b412 (patch)
tree97369539c35eacfa87c33e859bea8f7acd267223 /src/network/networkd-bridge.c
parent23a7f0f721ff4e3b3fd4ed87f7d8e01ebad20093 (diff)
rtnl: simplify link_new()
Drop most of the arguments and instead introduce link_set_{flags,type}.
Diffstat (limited to 'src/network/networkd-bridge.c')
-rw-r--r--src/network/networkd-bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-bridge.c b/src/network/networkd-bridge.c
index 1704f65ee6..b764b7d593 100644
--- a/src/network/networkd-bridge.c
+++ b/src/network/networkd-bridge.c
@@ -84,7 +84,7 @@ static int bridge_join_ready(Bridge *bridge, Link* link, sd_rtnl_message_handler
assert(link);
assert(callback);
- r = sd_rtnl_message_link_new(RTM_SETLINK, link->ifindex, 0, 0, &req);
+ r = sd_rtnl_message_link_new(RTM_SETLINK, link->ifindex, &req);
if (r < 0) {
log_error("Could not allocate RTM_SETLINK message: %s",
strerror(-r));
@@ -155,7 +155,7 @@ static int bridge_create(Bridge *bridge) {
assert(bridge->manager);
assert(bridge->manager->rtnl);
- r = sd_rtnl_message_link_new(RTM_NEWLINK, 0, 0, 0, &req);
+ r = sd_rtnl_message_link_new(RTM_NEWLINK, 0, &req);
if (r < 0) {
log_error("Could not allocate RTM_NEWLINK message: %s",
strerror(-r));