Diff for /embedaddon/quagga/lib/jhash.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 17:26:12 version 1.1.1.2, 2016/11/02 10:09:10
Line 42 Line 42
  * the input key.   * the input key.
  */   */
 u_int32_t  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_int32_t a, b, c, len;
  u_int8_t *k = key;  const u_int8_t *k = key;
   
   len = length;    len = length;
   a = b = JHASH_GOLDEN_RATIO;    a = b = JHASH_GOLDEN_RATIO;
Line 105  jhash (void *key, u_int32_t length, u_int32_t initval) Line 105  jhash (void *key, u_int32_t length, u_int32_t initval)
  * The length parameter here is the number of u_int32_ts in the key.   * The length parameter here is the number of u_int32_ts in the key.
  */   */
 u_int32_t  u_int32_t
jhash2 (u_int32_t * k, u_int32_t length, u_int32_t initval)jhash2 (const u_int32_t *k, u_int32_t length, u_int32_t initval)
 {  {
   u_int32_t a, b, c, len;    u_int32_t a, b, c, len;
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>