[systemd-commits] src/network
Tom Gundersen
tomegun at kemper.freedesktop.org
Fri Jul 18 04:31:32 PDT 2014
src/network/networkd-wait-online-link.c | 12 +-----------
src/network/networkd-wait-online-manager.c | 2 +-
2 files changed, 2 insertions(+), 12 deletions(-)
New commits:
commit d243773263630f1cbc5868a12476b17c335abec8
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jul 18 13:25:18 2014 +0200
networkd-wait-online: fix comilation warning
sd_rtnl_message_read_string() was changed to take a const argument, update the users.
diff --git a/src/network/networkd-wait-online-link.c b/src/network/networkd-wait-online-link.c
index 9dc95f5..47fb0c0 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;
}
diff --git a/src/network/networkd-wait-online-manager.c b/src/network/networkd-wait-online-manager.c
index 649a21c..6e3ec69 100644
--- a/src/network/networkd-wait-online-manager.c
+++ b/src/network/networkd-wait-online-manager.c
@@ -80,7 +80,7 @@ static int manager_process_link(sd_rtnl *rtnl, sd_rtnl_message *mm, void *userda
Manager *m = userdata;
uint16_t type;
Link *l;
- char *ifname;
+ const char *ifname;
int ifindex, r;
assert(rtnl);
More information about the systemd-commits
mailing list