aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index 5b7a0a611..d03faf32a 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -208,10 +208,11 @@ int curl_socket(int domain, int type, int protocol, int line,
return sockfd;
}
-int curl_accept(int s, void *saddr, socklen_t *addrlen,
+int curl_accept(int s, void *saddr, void *saddrlen,
int line, const char *source)
{
struct sockaddr *addr = (struct sockaddr *)saddr;
+ socklen_t *addrlen = (socklen_t *)saddrlen;
int sockfd=(accept)(s, addr, addrlen);
if(logfile)
fprintf(logfile, "FD %s:%d accept() = %d\n",