From: Mark Stapp Date: Thu, 22 Aug 2019 12:36:59 +0000 (-0400) Subject: lib: use const in prefix_mac2str X-Git-Tag: base_7.2~4^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=a9e08ebce1afaa9b509024d116eeccc7ab6a479b;p=mirror%2Ffrr.git lib: use const in prefix_mac2str Use const for mac pointer. Signed-off-by: Mark Stapp --- diff --git a/lib/prefix.c b/lib/prefix.c index 1a4a914e05..053e4533e7 100644 --- a/lib/prefix.c +++ b/lib/prefix.c @@ -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; diff --git a/lib/prefix.h b/lib/prefix.h index e338140f1a..24c146e022 100644 --- a/lib/prefix.h +++ b/lib/prefix.h @@ -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);