summaryrefslogtreecommitdiff
path: root/zebra/zebra_mpls.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2019-05-16 10:00:55 -0400
committerGitHub <noreply@github.com>2019-05-16 10:00:55 -0400
commit6f33cbff181010025cb2c9f80aad3c12696e19b0 (patch)
tree7508b66be1548adf4ff1a81dc6006744b7b46ebb /zebra/zebra_mpls.c
parentcaca2c705c779e536ca4432912a5a8b1d5cc825a (diff)
parentd8b87afe7c5fcee9caaef7124d5bcd5f0c3af8a1 (diff)
Merge pull request #4340 from qlyoung/hash-key-const
lib: hashing functions should take const arguments
Diffstat (limited to 'zebra/zebra_mpls.c')
-rw-r--r--zebra/zebra_mpls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c
index f1082a5996..5356a7f498 100644
--- a/zebra/zebra_mpls.c
+++ b/zebra/zebra_mpls.c
@@ -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;