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".
This commit is contained in:
Daniel Stenberg 2004-02-18 12:18:33 +00:00
parent 62a12b7faf
commit f33be3c313
2 changed files with 12 additions and 3 deletions

View file

@ -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",