diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-07-17 16:59:41 -0400 |
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2019-07-17 16:59:41 -0400 |
| commit | 24774285ed7beabe3e48efabc6aa24ab06be7cb2 (patch) | |
| tree | b8b85d875957e2fe81362dbf032045a25b203d91 /lib/ipaddr.h | |
| parent | 96e109772d064e9df9ce208b53f7ff1872e1c427 (diff) | |
lib: use const in ipaddr2str
Use const more
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/ipaddr.h')
| -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) { |
