diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-07-17 18:59:08 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-17 18:59:08 -0400 |
| commit | a85de978b62c17db23fc502ddcd6bc0718e754a7 (patch) | |
| tree | 441a5353bfa668a548b54aaa5b729119127f6d0b | |
| parent | 974c214ba954c1e73e872073d479a30a96d0b3de (diff) | |
| parent | 24774285ed7beabe3e48efabc6aa24ab06be7cb2 (diff) | |
Merge pull request #4704 from mjstapp/fix_ip2str_const
lib: use const in ipaddr2str
| -rw-r--r-- | lib/ipaddr.h | 2 |
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) { |
