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:
parent
cc58c44aee
commit
50ba61082d
2 changed files with 2 additions and 2 deletions
|
@ -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 :
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue