aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-18 12:22:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-18 12:22:56 +0000
commitde681d3b8fd0cff2428a5d8f926eb9838dc619b0 (patch)
tree2a4ea584c83fd5438087eb26d9fedbe5d908afeb
parentf33be3c31320e4c92531be02df52800e56ab872b (diff)
Made curl_accept() take a 'void *' instead of 'socklen_t *' in the 3rd
argument to also not force the casual includer to know about the socklen_t type.
-rw-r--r--lib/memdebug.c3
-rw-r--r--lib/memdebug.h2
2 files changed, 3 insertions, 2 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",
diff --git a/lib/memdebug.h b/lib/memdebug.h
index 825526d42..2bf75e58d 100644
--- a/lib/memdebug.h
+++ b/lib/memdebug.h
@@ -58,7 +58,7 @@ void curl_memlimit(long limit);
/* file descriptor manipulators */
int curl_socket(int domain, int type, int protocol, int line , const char *);
int curl_sclose(int sockfd, int, const char *source);
-int curl_accept(int s, void *addr, socklen_t *addrlen,
+int curl_accept(int s, void *addr, void *addrlen,
int line, const char *source);
/* FILE functions */