hash: make arg for jhash2 const
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 7 Mar 2014 18:13:38 +0000 (10:13 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 24 Mar 2014 17:58:25 +0000 (18:58 +0100)
The argument to rte_jhash2() is not changed.

Signed-off-by: Stephen Hemminger <shemming@brocade.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
lib/librte_hash/rte_jhash.h

index e137d13..ae91bf7 100644 (file)
@@ -149,7 +149,7 @@ rte_jhash(const void *key, uint32_t length, uint32_t initval)
  *   Calculated hash value.
  */
 static inline uint32_t
-rte_jhash2(uint32_t *k, uint32_t length, uint32_t initval)
+rte_jhash2(const uint32_t *k, uint32_t length, uint32_t initval)
 {
        uint32_t a, b, c, len;