]> granicus.if.org Git - curl/commitdiff
Made curl_accept() take a 'void *' instead of 'socklen_t *' in the 3rd
authorDaniel Stenberg <daniel@haxx.se>
Wed, 18 Feb 2004 12:22:56 +0000 (12:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 18 Feb 2004 12:22:56 +0000 (12:22 +0000)
argument to also not force the casual includer to know about the socklen_t
type.

lib/memdebug.c
lib/memdebug.h

index 5b7a0a61139c630501de2fb2af888ec7f0470de1..d03faf32a0276d386661c99c16323f384b55b08e 100644 (file)
@@ -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",
index 825526d42d37ec8854bf4110310ff6db13891984..2bf75e58d6324974e85c3d2f52840aa187028d4a 100644 (file)
@@ -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 */