aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/hash.h
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2012-12-07 08:35:36 -0500
committerAntonio Quartulli <ordex@autistici.org>2013-01-12 05:58:22 -0500
commit467b5fe69716257ebe17a9df9c428ad32eba540a (patch)
treef800c2755c1d65e12378c975c7bdf4eca49961f0 /net/batman-adv/hash.h
parentfa706554d6553331e886ce6fb86ca40b6dbc2083 (diff)
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/hash.h')
-rw-r--r--net/batman-adv/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/hash.h b/net/batman-adv/hash.h
index e05333905afd..ea0214824327 100644
--- a/net/batman-adv/hash.h
+++ b/net/batman-adv/hash.h
@@ -89,7 +89,7 @@ static inline void batadv_hash_delete(struct batadv_hashtable *hash,
89 * 89 *
90 * Returns the new hash value. 90 * Returns the new hash value.
91 */ 91 */
92static inline uint32_t batadv_hash_bytes(uint32_t hash, void *data, 92static inline uint32_t batadv_hash_bytes(uint32_t hash, const void *data,
93 uint32_t size) 93 uint32_t size)
94{ 94{
95 const unsigned char *key = data; 95 const unsigned char *key = data;