if2ip: make the buf_size arg a size_t
sizes should be size_t Ref: #13489 Closes #13505
This commit is contained in:
parent
3583ed8b77
commit
0199104e94
@ -102,7 +102,7 @@ if2ip_result_t Curl_if2ip(int af,
|
|||||||
unsigned int local_scope_id,
|
unsigned int local_scope_id,
|
||||||
#endif
|
#endif
|
||||||
const char *interf,
|
const char *interf,
|
||||||
char *buf, int buf_size)
|
char *buf, size_t buf_size)
|
||||||
{
|
{
|
||||||
struct ifaddrs *iface, *head;
|
struct ifaddrs *iface, *head;
|
||||||
if2ip_result_t res = IF2IP_NOT_FOUND;
|
if2ip_result_t res = IF2IP_NOT_FOUND;
|
||||||
@ -187,7 +187,7 @@ if2ip_result_t Curl_if2ip(int af,
|
|||||||
unsigned int local_scope_id,
|
unsigned int local_scope_id,
|
||||||
#endif
|
#endif
|
||||||
const char *interf,
|
const char *interf,
|
||||||
char *buf, int buf_size)
|
char *buf, size_t buf_size)
|
||||||
{
|
{
|
||||||
struct ifreq req;
|
struct ifreq req;
|
||||||
struct in_addr in;
|
struct in_addr in;
|
||||||
@ -242,7 +242,7 @@ if2ip_result_t Curl_if2ip(int af,
|
|||||||
unsigned int local_scope_id,
|
unsigned int local_scope_id,
|
||||||
#endif
|
#endif
|
||||||
const char *interf,
|
const char *interf,
|
||||||
char *buf, int buf_size)
|
char *buf, size_t buf_size)
|
||||||
{
|
{
|
||||||
(void) af;
|
(void) af;
|
||||||
#ifdef USE_IPV6
|
#ifdef USE_IPV6
|
||||||
|
|||||||
@ -50,7 +50,7 @@ if2ip_result_t Curl_if2ip(int af,
|
|||||||
unsigned int local_scope_id,
|
unsigned int local_scope_id,
|
||||||
#endif
|
#endif
|
||||||
const char *interf,
|
const char *interf,
|
||||||
char *buf, int buf_size);
|
char *buf, size_t buf_size);
|
||||||
|
|
||||||
#ifdef __INTERIX
|
#ifdef __INTERIX
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user