mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:43:33 +03:00
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:
parent
62a12b7faf
commit
f33be3c313
2 changed files with 12 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue