aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-18 12:18:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-18 12:18:33 +0000
commitf33be3c31320e4c92531be02df52800e56ab872b (patch)
tree685b2c939c2194d37f4e18b677688cb8ed155e0e /lib/memdebug.c
parent62a12b7faf269412ac64d86df6a8d5f0541c7e13 (diff)
Modified curl_accept() to take a 'void *' in the 2nd argument instead of
sockaddr *. This has the added benefit that source files that include memdebug.h doesn't have to know about "sockaddr".
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 d08de6a2d..5b7a0a611 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -208,9 +208,10 @@ int curl_socket(int domain, int type, int protocol, int line,
return sockfd;
}
-int curl_accept(int s, struct sockaddr *addr, socklen_t *addrlen,
+int curl_accept(int s, void *saddr, socklen_t *addrlen,
int line, const char *source)
{
+ struct sockaddr *addr = (struct sockaddr *)saddr;
int sockfd=(accept)(s, addr, addrlen);
if(logfile)
fprintf(logfile, "FD %s:%d accept() = %d\n",