summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-03 19:20:46 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-03 19:20:46 +0200
commita60a720c7e67b77911e4130a5eef41f652375ce3 (patch)
tree87bc97408dc400508535489eba72d46f367556e9 /src/network/networkd-link.c
parent75f8a779fdd433366643b905caa005c14e1a8331 (diff)
networkd: drop weird "const" usage in function parameters
We generally only use "const" to constify the destination of pointers, but not the pointers themselves, as they are copied anyway during C function invocation. Hence, drop this usage of "const".
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index ba4147f875..5bf98765c6 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -1092,7 +1092,7 @@ int link_address_remove_handler(sd_netlink *rtnl, sd_netlink_message *m, void *u
return 1;
}
-static int link_set_bridge_fdb(Link *const link) {
+static int link_set_bridge_fdb(Link *link) {
FdbEntry *fdb_entry;
int r = 0;
@@ -1107,7 +1107,7 @@ static int link_set_bridge_fdb(Link *const link) {
return r;
}
-static int link_set_proxy_arp(Link *const link) {
+static int link_set_proxy_arp(Link *link) {
const char *p = NULL;
int r;