]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: use const in ipaddr2str
authorMark Stapp <mjs@voltanet.io>
Wed, 17 Jul 2019 20:59:41 +0000 (16:59 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 17 Jul 2019 20:59:41 +0000 (16:59 -0400)
Use const more

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

index 1c2399fdd3ea16d153bdac1189a1314d40590b3b..ec08fc09a20edfbc612206f10fab790f52bba5e5 100644 (file)
@@ -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) {