This commit is contained in:
Viktor Szakats 2026-06-30 18:22:49 +02:00
parent 2696110b08
commit f3cbe33974
No known key found for this signature in database
2 changed files with 4 additions and 8 deletions

View file

@ -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 */

View file

@ -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 */