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

windows: clean quirks

https://github.com/warmcat/libwebsockets/issues/3039
This commit is contained in:
Ogre Transporter 2024-01-05 05:48:56 +00:00 committed by Andy Green
parent cc58c44aee
commit 50ba61082d
2 changed files with 2 additions and 2 deletions

View file

@ -212,7 +212,7 @@ done_list:
for (m = 0; m < limit; m++) {
if (a->info && a->info->vh_listen_sockfd)
sockfd = dup(a->info->vh_listen_sockfd);
sockfd = dup((int)a->info->vh_listen_sockfd);
else
sockfd = lws_fi(&a->vhost->fic, "listenskt") ?
LWS_SOCK_INVALID :

View file

@ -123,7 +123,7 @@ secstream_raw(struct lws *wsi, enum lws_callback_reasons reason, void *user,
/* chunks of chunked content, with header removed */
case LWS_CALLBACK_RAW_RX_FILE:
in = p;
f = (int)read(wsi->desc.filefd, p, sizeof(buf) - LWS_PRE);
f = (int)read((int)(intptr_t)wsi->desc.filefd, p, sizeof(buf) - LWS_PRE);
if (f < 0)
return 0;
len = (unsigned int)f;