mirror of
https://github.com/systemd/systemd.git
synced 2024-10-31 16:21:26 +03:00
networkd-wait-online: fix comilation warning
sd_rtnl_message_read_string() was changed to take a const argument, update the users.
This commit is contained in:
parent
a72e03749f
commit
d243773263
@ -86,7 +86,7 @@ Link *link_free(Link *l) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int link_update_rtnl(Link *l, sd_rtnl_message *m) {
|
int link_update_rtnl(Link *l, sd_rtnl_message *m) {
|
||||||
char *ifname;
|
const char *ifname;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
assert(l);
|
assert(l);
|
||||||
@ -139,18 +139,8 @@ int link_update_monitor(Link *l) {
|
|||||||
bool link_relevant(Link *l) {
|
bool link_relevant(Link *l) {
|
||||||
assert(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)
|
if (l->flags & IFF_LOOPBACK)
|
||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ static int manager_process_link(sd_rtnl *rtnl, sd_rtnl_message *mm, void *userda
|
|||||||
Manager *m = userdata;
|
Manager *m = userdata;
|
||||||
uint16_t type;
|
uint16_t type;
|
||||||
Link *l;
|
Link *l;
|
||||||
char *ifname;
|
const char *ifname;
|
||||||
int ifindex, r;
|
int ifindex, r;
|
||||||
|
|
||||||
assert(rtnl);
|
assert(rtnl);
|
||||||
|
Loading…
Reference in New Issue
Block a user