mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
win32: fix comparison between unsigned and signed integer
This commit is contained in:
parent
3eae5b1363
commit
efbd6c1b50
1 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ lws_context_init_server(struct lws_context_creation_info *info,
|
||||||
#endif
|
#endif
|
||||||
sockfd = socket(AF_INET, SOCK_STREAM, 0);
|
sockfd = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
|
|
||||||
if (sockfd == -1) {
|
if (sockfd == LWS_SOCK_INVALID) {
|
||||||
#endif
|
#endif
|
||||||
lwsl_err("ERROR opening socket\n");
|
lwsl_err("ERROR opening socket\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -2582,8 +2582,8 @@ try_pollout:
|
||||||
(struct sockaddr *)&cli_addr,
|
(struct sockaddr *)&cli_addr,
|
||||||
&clilen);
|
&clilen);
|
||||||
lws_latency(context, wsi, "listener accept",
|
lws_latency(context, wsi, "listener accept",
|
||||||
(int)accept_fd, accept_fd >= 0);
|
(int)accept_fd, accept_fd != LWS_SOCK_INVALID);
|
||||||
if (accept_fd < 0) {
|
if (accept_fd == LWS_SOCK_INVALID) {
|
||||||
if (LWS_ERRNO == LWS_EAGAIN ||
|
if (LWS_ERRNO == LWS_EAGAIN ||
|
||||||
LWS_ERRNO == LWS_EWOULDBLOCK) {
|
LWS_ERRNO == LWS_EWOULDBLOCK) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue