]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: use const in prefix_mac2str
authorMark Stapp <mjs@voltanet.io>
Thu, 22 Aug 2019 12:36:59 +0000 (08:36 -0400)
committerMark Stapp <mjs@voltanet.io>
Fri, 23 Aug 2019 14:09:38 +0000 (10:09 -0400)
Use const for mac pointer.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/prefix.c
lib/prefix.h

index 1a4a914e05e54127abb28aa4d3ea146c2b811b23..053e4533e7b152c5a1d8191b8fabea4c49aec1bd 100644 (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;
 
index e338140f1ae80c8c51dba10ef9dfdd41695d2186..24c146e02221db0a17a5baadf93cda3574104daf 100644 (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);