mirror of
https://github.com/curl/curl.git
synced 2026-08-11 20:40:54 +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
|
|
@ -345,28 +345,6 @@ size_t curlx_sitouz(int sinum)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
|
||||
/*
|
||||
** curl_socket_t to signed int
|
||||
*/
|
||||
|
||||
int curlx_sktosi(curl_socket_t s)
|
||||
{
|
||||
return (int)((ssize_t) s);
|
||||
}
|
||||
|
||||
/*
|
||||
** signed int to curl_socket_t
|
||||
*/
|
||||
|
||||
curl_socket_t curlx_sitosk(int i)
|
||||
{
|
||||
return (curl_socket_t)((ssize_t) i);
|
||||
}
|
||||
|
||||
#endif /* USE_WINSOCK */
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
ssize_t curlx_read(int fd, void *buf, size_t count)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue