mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-11 00:16:07 +00:00
Merge pull request #4704 from mjstapp/fix_ip2str_const
lib: use const in ipaddr2str
This commit is contained in:
commit
a85de978b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user