From 0199104e944c1625056b4cf78b6cdb14a7b82e3e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 30 Apr 2024 09:11:00 +0200 Subject: [PATCH] if2ip: make the buf_size arg a size_t sizes should be size_t Ref: #13489 Closes #13505 --- lib/if2ip.c | 6 +++--- lib/if2ip.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/if2ip.c b/lib/if2ip.c index 36dfe8b396..42e14500bc 100644 --- a/lib/if2ip.c +++ b/lib/if2ip.c @@ -102,7 +102,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int local_scope_id, #endif const char *interf, - char *buf, int buf_size) + char *buf, size_t buf_size) { struct ifaddrs *iface, *head; if2ip_result_t res = IF2IP_NOT_FOUND; @@ -187,7 +187,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int local_scope_id, #endif const char *interf, - char *buf, int buf_size) + char *buf, size_t buf_size) { struct ifreq req; struct in_addr in; @@ -242,7 +242,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int local_scope_id, #endif const char *interf, - char *buf, int buf_size) + char *buf, size_t buf_size) { (void) af; #ifdef USE_IPV6 diff --git a/lib/if2ip.h b/lib/if2ip.h index e251d1ddfc..f4b2f4c15d 100644 --- a/lib/if2ip.h +++ b/lib/if2ip.h @@ -50,7 +50,7 @@ if2ip_result_t Curl_if2ip(int af, unsigned int local_scope_id, #endif const char *interf, - char *buf, int buf_size); + char *buf, size_t buf_size); #ifdef __INTERIX