summaryrefslogtreecommitdiff
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-04-30 19:40:11 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-05-02 16:21:38 -0400
commit62b4b3b68dc1991e31514167a180cf752d24dc5c (patch)
tree8ab8f508f5146dfb9750b1ee298cce97db0ecb85 /lib/prefix.c
parent98d28ef55dd11a6efaa2bf3101ac57cf78e803bb (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.c')
-rw-r--r--lib/prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 6b91969218..d2a4c3a432 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -1543,7 +1543,7 @@ char *prefix_mac2str(const struct ethaddr *mac, char *buf, int size)
return ptr;
}
-unsigned prefix_hash_key(void *pp)
+unsigned prefix_hash_key(const void *pp)
{
struct prefix copy;