]> git.puffer.fish Git - matthieu/frr.git/commitdiff
Fix arm compilation failures of sockunion_hash issues
authorDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 Sep 2015 20:26:57 +0000 (13:26 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 8 Sep 2015 20:26:57 +0000 (13:26 -0700)
Compiling for the arm platform with -Werror for the 9196caf commit
causes it to fail.  This commit addresses this issue

lib/jhash.h

index a9807cc38834a5059710e12df1ee1a75f3602fe8..985ac94e04964677ba683a51e8e4e25f7e4d1532 100644 (file)
@@ -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).