summaryrefslogtreecommitdiff
path: root/src/network/networkd-fdb.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-fdb.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-fdb.c')
-rw-r--r--src/network/networkd-fdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-fdb.c b/src/network/networkd-fdb.c
index 4d51fa41e2..9829438ba2 100644
--- a/src/network/networkd-fdb.c
+++ b/src/network/networkd-fdb.c
@@ -32,7 +32,7 @@
/* create a new FDB entry or get an existing one. */
int fdb_entry_new_static(
Network *network,
- const unsigned section,
+ unsigned section,
FdbEntry **ret) {
_cleanup_fdbentry_free_ FdbEntry *fdb_entry = NULL;
@@ -102,7 +102,7 @@ static int set_fdb_handler(sd_netlink *rtnl, sd_netlink_message *m, void *userda
}
/* send a request to the kernel to add a FDB entry in its static MAC table. */
-int fdb_entry_configure(Link *const link, FdbEntry *const fdb_entry) {
+int fdb_entry_configure(Link *link, FdbEntry *fdb_entry) {
_cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
sd_netlink *rtnl;
int r;