From 2d32fef70bf35238a7f175d5aa47c05d1a1267f2 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 Mar 2014 10:13:38 -0800 Subject: [PATCH] hash: make arg for jhash2 const The argument to rte_jhash2() is not changed. Signed-off-by: Stephen Hemminger Acked-by: Thomas Monjalon --- lib/librte_hash/rte_jhash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_hash/rte_jhash.h b/lib/librte_hash/rte_jhash.h index e137d13d4e..ae91bf7db2 100644 --- a/lib/librte_hash/rte_jhash.h +++ b/lib/librte_hash/rte_jhash.h @@ -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; -- 2.20.1