]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Fix hash key type in zebra_nhg
authorStephen Worley <sworley@cumulusnetworks.com>
Fri, 29 Mar 2019 14:53:14 +0000 (10:53 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:38 +0000 (11:13 -0400)
We were declaring the hash key as an int rather then
uint32_t.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_nhg.c

index 18f5cf3b8dbf2693d7de54988357c3fc694741e9..c149eafea9f794ddc4df8ceedb5daa7e6c416c3f 100644 (file)
@@ -229,7 +229,7 @@ uint32_t zebra_nhg_hash_key(const void *arg)
 {
        const struct nhg_hash_entry *nhe = arg;
 
-       int key = 0x5a351234;
+       uint32_t key = 0x5a351234;
 
        key = jhash_2words(nhe->vrf_id, nhe->afi, key);