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:
Daniel Stenberg 2024-10-04 22:32:04 +02:00
parent 57cc523378
commit e9eda865df
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 2 additions and 32 deletions

View file

@ -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)