diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-03 19:20:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-03 19:20:46 +0200 |
commit | a60a720c7e67b77911e4130a5eef41f652375ce3 (patch) | |
tree | 87bc97408dc400508535489eba72d46f367556e9 /src/network/networkd-fdb.h | |
parent | 75f8a779fdd433366643b905caa005c14e1a8331 (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.h')
-rw-r--r-- | src/network/networkd-fdb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd-fdb.h b/src/network/networkd-fdb.h index 84410714f5..2d7d28735c 100644 --- a/src/network/networkd-fdb.h +++ b/src/network/networkd-fdb.h @@ -36,9 +36,9 @@ struct FdbEntry { LIST_FIELDS(FdbEntry, static_fdb_entries); }; -int fdb_entry_new_static(Network *const network, const unsigned section, FdbEntry **ret); +int fdb_entry_new_static(Network *network, unsigned section, FdbEntry **ret); void fdb_entry_free(FdbEntry *fdb_entry); -int fdb_entry_configure(Link *const link, FdbEntry *const fdb_entry); +int fdb_entry_configure(Link *link, FdbEntry *fdb_entry); DEFINE_TRIVIAL_CLEANUP_FUNC(FdbEntry*, fdb_entry_free); #define _cleanup_fdbentry_free_ _cleanup_(fdb_entry_freep) |