Merge pull request #4704 from mjstapp/fix_ip2str_const

lib: use const in ipaddr2str
This commit is contained in:
Donald Sharp 2019-07-17 18:59:08 -04:00 committed by GitHub
commit a85de978b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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) {