mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 11:01:48 +00:00
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>
This commit is contained in:
parent
98d28ef55d
commit
62b4b3b68d
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user