summaryrefslogtreecommitdiff
path: root/lib/prefix.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-04-30 19:40:11 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-01 20:28:57 -0400
commit6701b1b7e749af853f9b9363ef507189d10ef6d2 (patch)
tree41d115f44809d9c955ff595e77943e6c9d03dcb5 /lib/prefix.h
parenta07f484614e0e9cc92afaf4bf58e6f6507fdbed4 (diff)
lib: Make prefix_hash_key accept a const
We should not be modifying the pointer for the prefix_hash_key function, make it a const so that we can use it elsewhere. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/prefix.h')
-rw-r--r--lib/prefix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.h b/lib/prefix.h
index d3c387e102..d57b43dac6 100644
--- a/lib/prefix.h
+++ b/lib/prefix.h
@@ -466,7 +466,7 @@ extern int is_zero_mac(struct ethaddr *mac);
extern int prefix_str2mac(const char *str, struct ethaddr *mac);
extern char *prefix_mac2str(const struct ethaddr *mac, char *buf, int size);
-extern unsigned prefix_hash_key(void *pp);
+extern unsigned prefix_hash_key(const void *pp);
extern int str_to_esi(const char *str, esi_t *esi);
extern char *esi_to_str(const esi_t *esi, char *buf, int size);