From f3cbe33974503a78612b1b365dd14cf49bf2fe45 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 30 Jun 2026 18:22:49 +0200 Subject: [PATCH] drop --- lib/curlx/inet_pton.c | 9 +++------ lib/curlx/inet_pton.h | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/curlx/inet_pton.c b/lib/curlx/inet_pton.c index 3585e8fd1b..23e76725fe 100644 --- a/lib/curlx/inet_pton.c +++ b/lib/curlx/inet_pton.c @@ -110,8 +110,7 @@ static int inet_pton4(const char *src, unsigned char *dst) * author: * Paul Vixie, 1996. */ -static int inet_pton6(const char *src, unsigned char *dst, - CURLcode *result) +static int inet_pton6(const char *src, unsigned char *dst) { unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; const char *curtok; @@ -204,12 +203,10 @@ int curlx_inet_pton(int af, const char *src, void *dst) { switch(af) { case AF_INET: - return inet_pton4(src, (unsigned char *)dst, result); + return inet_pton4(src, (unsigned char *)dst); case AF_INET6: - return inet_pton6(src, (unsigned char *)dst, result); + return inet_pton6(src, (unsigned char *)dst); default: - if(result) - *result = CURLE_UNSUPPORTED_PROTOCOL; return -1; } /* NOTREACHED */ diff --git a/lib/curlx/inet_pton.h b/lib/curlx/inet_pton.h index 286b471161..4e45e83285 100644 --- a/lib/curlx/inet_pton.h +++ b/lib/curlx/inet_pton.h @@ -25,7 +25,6 @@ ***************************************************************************/ #include "curl_setup.h" -int curlx_inet_pton(int af, const char *src, void *dst, - CURLcode *result); +int curlx_inet_pton(int af, const char *src, void *dst); #endif /* HEADER_CURL_INET_PTON_H */