networkd: fdb - fix const warning

This commit is contained in:
Tom Gundersen 2015-02-11 13:02:58 +01:00
parent f806f64c74
commit a245ced0d7
3 changed files with 3 additions and 4 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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);