1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

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

View 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 */