]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_mpls.c
lib: hashing functions should take const arguments
[mirror_frr.git] / zebra / zebra_mpls.c
index f1082a5996cafe1a9e91e4cf4a4b3363212d9b7d..5356a7f498de3ef60fc82c2afde806e7b7ccd6ef 100644 (file)
@@ -76,7 +76,7 @@ static zebra_fec_t *fec_add(struct route_table *table, struct prefix *p,
                            uint32_t label_index);
 static int fec_del(zebra_fec_t *fec);
 
-static unsigned int label_hash(void *p);
+static unsigned int label_hash(const void *p);
 static bool label_cmp(const void *p1, const void *p2);
 static int nhlfe_nexthop_active_ipv4(zebra_nhlfe_t *nhlfe,
                                     struct nexthop *nexthop);
@@ -577,7 +577,7 @@ static int fec_del(zebra_fec_t *fec)
 /*
  * Hash function for label.
  */
-static unsigned int label_hash(void *p)
+static unsigned int label_hash(const void *p)
 {
        const zebra_ile_t *ile = p;