summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-08-22 08:36:59 -0400
committerMark Stapp <mjs@voltanet.io>2019-08-23 10:09:38 -0400
commita9e08ebce1afaa9b509024d116eeccc7ab6a479b (patch)
tree9000edcd58153d4f1524eaa5d7280865f2d8c2eb
parentf2412b2d19afa719e9379278dcd1d96b03eddff4 (diff)
lib: use const in prefix_mac2str
Use const for mac pointer. Signed-off-by: Mark Stapp <mjs@voltanet.io>
-rw-r--r--lib/prefix.c2
-rw-r--r--lib/prefix.h2
2 files changed, 2 insertions, 2 deletions
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);