summaryrefslogtreecommitdiff
path: root/lib/jhash.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jhash.c')
-rw-r--r--lib/jhash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jhash.c b/lib/jhash.c
index 071fed6e6d..3cf183299f 100644
--- a/lib/jhash.c
+++ b/lib/jhash.c
@@ -42,10 +42,10 @@
* the input key.
*/
u_int32_t
-jhash (void *key, u_int32_t length, u_int32_t initval)
+jhash (const void *key, u_int32_t length, u_int32_t initval)
{
u_int32_t a, b, c, len;
- u_int8_t *k = key;
+ const u_int8_t *k = key;
len = length;
a = b = JHASH_GOLDEN_RATIO;