1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

socks5: cast for mingw3 nonposix recv args

This commit is contained in:
Andy Green 2021-07-08 15:24:09 +01:00
parent 439651fa7e
commit a310e16f8f

View file

@ -266,7 +266,7 @@ lws_socks5c_handle_state(struct lws *wsi, struct lws_pollfd *pollfd,
return LW5CHS_RET_BAIL3;
}
n = (int)recv(wsi->desc.sockfd, pt->serv_buf,
n = (int)recv(wsi->desc.sockfd, (void *)pt->serv_buf,
wsi->a.context->pt_serv_buf_size, 0);
if (n < 0) {
if (LWS_ERRNO == LWS_EAGAIN) {