mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:33:39 +03:00
warnless: remove curlx_sktosi and curlx_sitosk
They were only used by test server code. Use plain old typecasts there. Closes #15153
This commit is contained in:
parent
57cc523378
commit
e9eda865df
3 changed files with 2 additions and 32 deletions
|
|
@ -691,7 +691,7 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds,
|
|||
nth = 0; /* number of internal waiting threads */
|
||||
nws = 0; /* number of handled Winsock sockets */
|
||||
for(fd = 0; fd < nfds; fd++) {
|
||||
wsasock = curlx_sitosk(fd);
|
||||
wsasock = (curl_socket_t)fd;
|
||||
wsaevents.lNetworkEvents = 0;
|
||||
handles[nfd] = 0;
|
||||
|
||||
|
|
@ -818,7 +818,7 @@ static int select_ws(int nfds, fd_set *readfds, fd_set *writefds,
|
|||
for(i = 0; i < nfd; i++) {
|
||||
fd = data[i].fd;
|
||||
handle = handles[i];
|
||||
wsasock = curlx_sitosk(fd);
|
||||
wsasock = (curl_socket_t)fd;
|
||||
|
||||
/* check if the current internal handle was triggered */
|
||||
if(wait != WAIT_FAILED && (wait - WAIT_OBJECT_0) <= i &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue