diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-07-18 02:35:16 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-07-18 12:38:32 +0200 |
commit | ca4e095ab9e970cb8fa472ae69ea1f0648041722 (patch) | |
tree | f52866c74ae50f3b996f164efaaa690513c96034 /src/network/networkd-link.c | |
parent | 0204152684188302e6c6232e50f30997fecb4ae3 (diff) |
sd-rtnl: make string returned by sd_rtnl_message_read_string() const
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 328c4d8003..7a0f30bdf5 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -42,7 +42,7 @@ static bool ipv4ll_is_bound(sd_ipv4ll *ll); static int link_new(Manager *manager, sd_rtnl_message *message, Link **ret) { _cleanup_link_unref_ Link *link = NULL; uint16_t type; - char *ifname; + const char *ifname; int r, ifindex; assert(manager); @@ -2337,7 +2337,7 @@ int link_add(Manager *m, sd_rtnl_message *message, Link **ret) { int link_update(Link *link, sd_rtnl_message *m) { struct ether_addr mac; - char *ifname; + const char *ifname; int r; assert(link); |