summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-07-18 00:59:08 +0200
committerGitHub <noreply@github.com>2019-07-18 00:59:08 +0200
commita85de978b62c17db23fc502ddcd6bc0718e754a7 (patch)
tree441a5353bfa668a548b54aaa5b729119127f6d0b /lib
parentMerge pull request #4680 from donaldsharp/test_longer (diff)
parentlib: use const in ipaddr2str (diff)
downloadfrr-a85de978b62c17db23fc502ddcd6bc0718e754a7.tar.xz
frr-a85de978b62c17db23fc502ddcd6bc0718e754a7.zip
Merge pull request #4704 from mjstapp/fix_ip2str_const
lib: use const in ipaddr2str
Diffstat (limited to 'lib')
-rw-r--r--lib/ipaddr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipaddr.h b/lib/ipaddr.h
index 1c2399fdd..ec08fc09a 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) {