summaryrefslogtreecommitdiff
path: root/src/network/networkd-netdev.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-18 02:35:16 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-18 12:38:32 +0200
commitca4e095ab9e970cb8fa472ae69ea1f0648041722 (patch)
treef52866c74ae50f3b996f164efaaa690513c96034 /src/network/networkd-netdev.c
parent0204152684188302e6c6232e50f30997fecb4ae3 (diff)
sd-rtnl: make string returned by sd_rtnl_message_read_string() const
Diffstat (limited to 'src/network/networkd-netdev.c')
-rw-r--r--src/network/networkd-netdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-netdev.c b/src/network/networkd-netdev.c
index 8e53439d32..86f2250c8f 100644
--- a/src/network/networkd-netdev.c
+++ b/src/network/networkd-netdev.c
@@ -341,8 +341,8 @@ int netdev_join(NetDev *netdev, Link *link, sd_rtnl_message_handler_t callback)
int netdev_set_ifindex(NetDev *netdev, sd_rtnl_message *message) {
uint16_t type;
const char *kind;
- char *received_kind;
- char *received_name;
+ const char *received_kind;
+ const char *received_name;
int r, ifindex;
assert(netdev);