mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-26 22:45:44 +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;
|
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';
|
buf[0] = '\0';
|
||||||
if (ip) {
|
if (ip) {
|
||||||
|
Loading…
Reference in New Issue
Block a user