summaryrefslogtreecommitdiff
path: root/src/network/networkctl.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-13 22:55:49 +0200
committerTom Gundersen <teg@jklm.no>2014-08-13 22:55:49 +0200
commit438ca2bbd4dc1de6193ec61f3c12e19cded7921d (patch)
treea90c3791fd4a9d231616d6f6ee93f36f3a1b47f0 /src/network/networkctl.c
parentd3df0e3982777fd5de8cffaa585eba0af3773c08 (diff)
sd-networkd: rename link_get_state to link_get_setup_state
Suggested by Kay and Lennart.
Diffstat (limited to 'src/network/networkctl.c')
-rw-r--r--src/network/networkctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 6fb9e62775..f83c1f3f9f 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -198,7 +198,7 @@ static int list_links(char **args, unsigned n) {
char devid[2 + DECIMAL_STR_MAX(int)];
_cleanup_free_ char *t = NULL;
- sd_network_link_get_state(links[i].ifindex, &state);
+ sd_network_link_get_setup_state(links[i].ifindex, &state);
sd_network_link_get_operational_state(links[i].ifindex, &operational_state);
sprintf(devid, "n%i", links[i].ifindex);
@@ -340,7 +340,7 @@ static int link_status_one(sd_rtnl *rtnl, struct udev *udev, const char *name) {
sd_rtnl_message_read_u32(reply, IFLA_MTU, &mtu);
- sd_network_link_get_state(ifindex, &state);
+ sd_network_link_get_setup_state(ifindex, &state);
sd_network_link_get_operational_state(ifindex, &operational_state);
sd_network_link_get_dns(ifindex, &dns);