summaryrefslogtreecommitdiff
path: root/lib/ipaddr.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-07-17 18:59:08 -0400
committerGitHub <noreply@github.com>2019-07-17 18:59:08 -0400
commita85de978b62c17db23fc502ddcd6bc0718e754a7 (patch)
tree441a5353bfa668a548b54aaa5b729119127f6d0b /lib/ipaddr.h
parent974c214ba954c1e73e872073d479a30a96d0b3de (diff)
parent24774285ed7beabe3e48efabc6aa24ab06be7cb2 (diff)
Merge pull request #4704 from mjstapp/fix_ip2str_const
lib: use const in ipaddr2str
Diffstat (limited to 'lib/ipaddr.h')
-rw-r--r--lib/ipaddr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipaddr.h b/lib/ipaddr.h
index 1c2399fdd3..ec08fc09a2 100644
--- a/lib/ipaddr.h
+++ b/lib/ipaddr.h
@@ -81,7 +81,7 @@ static inline int str2ipaddr(const char *str, struct ipaddr *ip)
return -1;
}
-static inline char *ipaddr2str(struct ipaddr *ip, char *buf, int size)
+static inline char *ipaddr2str(const struct ipaddr *ip, char *buf, int size)
{
buf[0] = '\0';
if (ip) {