mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +03:00
inet_ntop: rename curlx_inet_ntop to Curl_inet_ntop
It is not part of the curlx club. Closes #17313
This commit is contained in:
parent
b794264408
commit
c37f4b6ac3
7 changed files with 17 additions and 19 deletions
|
|
@ -162,7 +162,7 @@ if2ip_result_t Curl_if2ip(int af,
|
|||
addr =
|
||||
&((struct sockaddr_in *)(void *)iface->ifa_addr)->sin_addr;
|
||||
res = IF2IP_FOUND;
|
||||
ip = curlx_inet_ntop(af, addr, ipstr, sizeof(ipstr));
|
||||
ip = Curl_inet_ntop(af, addr, ipstr, sizeof(ipstr));
|
||||
msnprintf(buf, buf_size, "%s%s", ip, scope);
|
||||
break;
|
||||
}
|
||||
|
|
@ -235,7 +235,7 @@ if2ip_result_t Curl_if2ip(int af,
|
|||
|
||||
s = (struct sockaddr_in *)(void *)&req.ifr_addr;
|
||||
memcpy(&in, &s->sin_addr, sizeof(in));
|
||||
r = curlx_inet_ntop(s->sin_family, &in, buf, buf_size);
|
||||
r = Curl_inet_ntop(s->sin_family, &in, buf, buf_size);
|
||||
|
||||
sclose(dummy);
|
||||
if(!r)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue