summaryrefslogtreecommitdiff
path: root/src/network/networkd-wait-online-link.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-07-18 13:25:18 +0200
committerTom Gundersen <teg@jklm.no>2014-07-18 13:25:18 +0200
commitd243773263630f1cbc5868a12476b17c335abec8 (patch)
treefbbf08e06e8e6d882a6c171b64540e522ffd591a /src/network/networkd-wait-online-link.c
parenta72e03749f445a85010e4518ff94aa0d109043a0 (diff)
networkd-wait-online: fix comilation warning
sd_rtnl_message_read_string() was changed to take a const argument, update the users.
Diffstat (limited to 'src/network/networkd-wait-online-link.c')
-rw-r--r--src/network/networkd-wait-online-link.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/network/networkd-wait-online-link.c b/src/network/networkd-wait-online-link.c
index 9dc95f577c..47fb0c05df 100644
--- a/src/network/networkd-wait-online-link.c
+++ b/src/network/networkd-wait-online-link.c
@@ -86,7 +86,7 @@ Link *link_free(Link *l) {
}
int link_update_rtnl(Link *l, sd_rtnl_message *m) {
- char *ifname;
+ const char *ifname;
int r;
assert(l);
@@ -139,18 +139,8 @@ int link_update_monitor(Link *l) {
bool link_relevant(Link *l) {
assert(l);
- /* A link is relevant if it isn't a loopback device and has at
- * least one relevant IP address */
-
if (l->flags & IFF_LOOPBACK)
return false;
-/*
- if (l->operational_state && !STR_IN_SET(l->operational_state, "unknown", "degraded", "routable"))
- return false;
- LIST_FOREACH(addresses, a, l->addresses)
- if (link_address_relevant(a))
- return true;
-*/
return true;
}