From fffd2532ad34bdf7bf430b128e4c68d1164833c6 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 14 Mar 2024 20:11:55 +0000 Subject: [PATCH] fix wrong prototype of freeaddrinfo_t closes #557 --- src/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.h b/src/core.h index 3edece8..59a8e12 100644 --- a/src/core.h +++ b/src/core.h @@ -103,7 +103,7 @@ typedef int (*close_t)(int); typedef int (*close_range_t)(unsigned, unsigned, int); typedef int (*connect_t)(int, const struct sockaddr *, socklen_t); typedef struct hostent* (*gethostbyname_t)(const char *); -typedef int (*freeaddrinfo_t)(struct addrinfo *); +typedef void (*freeaddrinfo_t)(struct addrinfo *); typedef struct hostent *(*gethostbyaddr_t) (const void *, socklen_t, int); typedef int (*getaddrinfo_t)(const char *, const char *, const struct addrinfo *,