summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-03-06 19:44:37 +0100
committerTom Gundersen <teg@jklm.no>2014-03-06 19:44:37 +0100
commitd22f1006a1910e32ff099330d70badaf2aec75c6 (patch)
tree0a77596ba5c1c89d789c7e3deb2cd1d7b11536a9 /src/network
parent44caa5e7dfa2160f7d644d003de2718fd3ca2ee6 (diff)
sd-rtnl/networkd: use new rtnl_message_read() API and drop helper
With the new sd_rtnl_message_read_string(), there is no longer a need for rtnl_message_get_ifname().
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c
index c89adfba4f..f41914f880 100644
--- a/src/network/networkd-manager.c
+++ b/src/network/networkd-manager.c
@@ -303,7 +303,7 @@ int manager_udev_listen(Manager *m) {
static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, void *userdata) {
Manager *m = userdata;
Link *link;
- const char *name;
+ char *name;
int r, ifindex;
assert(rtnl);
@@ -316,7 +316,7 @@ static int manager_rtnl_process_link(sd_rtnl *rtnl, sd_rtnl_message *message, vo
return 0;
}
- r = rtnl_message_link_get_ifname(message, &name);
+ r = sd_rtnl_message_read_string(message, IFLA_IFNAME, &name);
if (r < 0)
log_debug("received RTM_NEWLINK message without valid IFLA_IFNAME");
else {