summaryrefslogtreecommitdiff
path: root/lib/jhash.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:04:26 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2015-05-19 18:04:26 -0700
commit24873f0c06e6196a105f648e8fe29d19dcddd1de (patch)
treef0ad6ae52390a9ed3b63c6fe228da30f5cf92d7b /lib/jhash.c
parent0299c0042783463ee007a6dba0de70dcf6fc36ee (diff)
lib: lib-warnings.patch
Remove compile warnings for the lib directory Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by:
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;