From: Donald Sharp Date: Tue, 8 Sep 2015 20:26:57 +0000 (-0700) Subject: Fix arm compilation failures of sockunion_hash issues X-Git-Tag: frr-2.0-rc1~1262 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a4d08ca331944d45ef109c22697c53f935dfa4d6;p=matthieu%2Ffrr.git Fix arm compilation failures of sockunion_hash issues Compiling for the arm platform with -Werror for the 9196caf commit causes it to fail. This commit addresses this issue --- diff --git a/lib/jhash.h b/lib/jhash.h index a9807cc388..985ac94e04 100644 --- a/lib/jhash.h +++ b/lib/jhash.h @@ -29,7 +29,7 @@ extern u_int32_t jhash(const void *key, u_int32_t length, u_int32_t initval); /* A special optimized version that handles 1 or more of u_int32_ts. * The length parameter here is the number of u_int32_ts in the key. */ -extern u_int32_t jhash2(u_int32_t *k, u_int32_t length, u_int32_t initval); +extern u_int32_t jhash2(const u_int32_t *k, u_int32_t length, u_int32_t initval); /* A special ultra-optimized versions that knows they are hashing exactly * 3, 2 or 1 word(s).