lib: use const in prefix_mac2str

Use const for mac pointer.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2019-08-22 08:36:59 -04:00
parent f2412b2d19
commit a9e08ebce1
2 changed files with 2 additions and 2 deletions

View File

@ -441,7 +441,7 @@ void prefix_hexdump(const struct prefix *p)
zlog_hexdump(p, sizeof(struct prefix));
}
int is_zero_mac(struct ethaddr *mac)
int is_zero_mac(const struct ethaddr *mac)
{
int i = 0;

View File

@ -470,7 +470,7 @@ extern void masklen2ip6(const int, struct in6_addr *);
extern const char *inet6_ntoa(struct in6_addr);
extern int is_zero_mac(struct ethaddr *mac);
extern int is_zero_mac(const 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);