From a310e16f8f7cdf72757582368f1a82948888f13a Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 8 Jul 2021 15:24:09 +0100 Subject: [PATCH] socks5: cast for mingw3 nonposix recv args --- lib/core-net/socks5-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core-net/socks5-client.c b/lib/core-net/socks5-client.c index f0db8f8c3..fe5f68b01 100644 --- a/lib/core-net/socks5-client.c +++ b/lib/core-net/socks5-client.c @@ -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) {