diff --git a/lib/memdebug.c b/lib/memdebug.c index 28b86b656..213906a83 100644 --- a/lib/memdebug.c +++ b/lib/memdebug.c @@ -120,7 +120,7 @@ int curl_socket(int domain, int type, int protocol, int line, char *source) return sockfd; } -int curl_accept(int s, struct sockaddr *addr, int *addrlen, +int curl_accept(int s, struct sockaddr *addr, socklen_t *addrlen, int line, char *source) { int sockfd=(accept)(s, addr, addrlen); diff --git a/lib/memdebug.h b/lib/memdebug.h index fc9a3222a..2ee523327 100644 --- a/lib/memdebug.h +++ b/lib/memdebug.h @@ -13,7 +13,7 @@ void curl_memdebug(char *logname); /* file descriptor manipulators */ int curl_socket(int domain, int type, int protocol, int, char *); int curl_sclose(int sockfd, int, char *); -int curl_accept(int s, struct sockaddr *addr, int *addrlen, +int curl_accept(int s, struct sockaddr *addr, socklen_t *addrlen, int line, char *source); /* FILE functions */