diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-01 01:40:11 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-05-02 22:21:38 +0200 |
commit | 62b4b3b68dc1991e31514167a180cf752d24dc5c (patch) | |
tree | 8ab8f508f5146dfb9750b1ee298cce97db0ecb85 /lib/prefix.c | |
parent | lib: Make _find functions treat the head as const (diff) | |
download | frr-62b4b3b68dc1991e31514167a180cf752d24dc5c.tar.xz frr-62b4b3b68dc1991e31514167a180cf752d24dc5c.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c index 6b9196921..d2a4c3a43 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; |