summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-02-11 13:02:58 +0100
committerTom Gundersen <teg@jklm.no>2015-02-11 13:13:50 +0100
commita245ced0d7b0af9ae5438d978e24183672a0a4d9 (patch)
tree5d3d870f0cc0c48f463a8b05e1d846c3820749bc
parentf806f64c7460632d6b6c27865e1554cb6c934320 (diff)
networkd: fdb - fix const warning
-rw-r--r--src/network/networkd-fdb.c3
-rw-r--r--src/network/networkd-link.c2
-rw-r--r--src/network/networkd.h2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/network/networkd-fdb.c b/src/network/networkd-fdb.c
index 78488c9d25..feab8d421e 100644
--- a/src/network/networkd-fdb.c
+++ b/src/network/networkd-fdb.c
@@ -99,8 +99,7 @@ static int set_fdb_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata) {
}
/* send a request to the kernel to add a FDB entry in its static MAC table. */
-int fdb_entry_configure(Link *link,
- FdbEntry *const fdb_entry) {
+int fdb_entry_configure(Link *const link, FdbEntry *const fdb_entry) {
_cleanup_rtnl_message_unref_ sd_rtnl_message *req = NULL;
sd_rtnl *rtnl;
int r;
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 3f1539454f..7b488162f9 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -728,7 +728,7 @@ int link_address_drop_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata)
return 1;
}
-static int link_set_bridge_fdb(const Link *const link) {
+static int link_set_bridge_fdb(Link *const link) {
FdbEntry *fdb_entry;
int r = 0;
diff --git a/src/network/networkd.h b/src/network/networkd.h
index fdd0684fca..7f1f06c811 100644
--- a/src/network/networkd.h
+++ b/src/network/networkd.h
@@ -383,7 +383,7 @@ int config_parse_label(const char *unit, const char *filename, unsigned line,
int ltype, const char *rvalue, void *data, void *userdata);
/* Forwarding database table. */
-int fdb_entry_configure(Link *link, FdbEntry *const fdb_entry);
+int fdb_entry_configure(Link *const link, FdbEntry *const fdb_entry);
void fdb_entry_free(FdbEntry *fdb_entry);
int fdb_entry_new_static(Network *const network, const unsigned section, FdbEntry **ret);