diff options
author | 2012-12-07 14:35:36 +0100 | |
---|---|---|
committer | 2013-01-12 20:58:22 +1000 | |
commit | 467b5fe69716257ebe17a9df9c428ad32eba540a (patch) | |
tree | f800c2755c1d65e12378c975c7bdf4eca49961f0 /net/batman-adv/bridge_loop_avoidance.c | |
parent | batman-adv: don't compile the BLA switch if not requested (diff) | |
download | linux-467b5fe69716257ebe17a9df9c428ad32eba540a.tar.gz linux-467b5fe69716257ebe17a9df9c428ad32eba540a.tar.bz2 linux-467b5fe69716257ebe17a9df9c428ad32eba540a.zip |
batman-adv: use the const qualifier in hash functions
The data argument in each hash function should carry the
"const" qualifier as it is never modified.
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.c')
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c index 724adf053dcc..5e834c1df469 100644 --- a/net/batman-adv/bridge_loop_avoidance.c +++ b/net/batman-adv/bridge_loop_avoidance.c @@ -57,7 +57,7 @@ static inline uint32_t batadv_choose_claim(const void *data, uint32_t size) static inline uint32_t batadv_choose_backbone_gw(const void *data, uint32_t size) { - struct batadv_claim *claim = (struct batadv_claim *)data; + const struct batadv_claim *claim = (struct batadv_claim *)data; uint32_t hash = 0; hash = batadv_hash_bytes(hash, &claim->addr, sizeof(claim->addr)); |