projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
737049b
)
windows plat correct assert test in lws_poll_listen_fd
author
Andy Green
<andy.green@linaro.org>
Thu, 18 Feb 2016 13:02:34 +0000
(21:02 +0800)
committer
Andy Green
<andy.green@linaro.org>
Thu, 18 Feb 2016 13:02:34 +0000
(21:02 +0800)
After https://github.com/warmcat/libwebsockets/issues/430
Signed-off-by: Andy Green <andy.green@linaro.org>
lib/lws-plat-win.c
patch
|
blob
|
history
diff --git
a/lib/lws-plat-win.c
b/lib/lws-plat-win.c
index
6fcf6da
..
cff09db
100644
(file)
--- a/
lib/lws-plat-win.c
+++ b/
lib/lws-plat-win.c
@@
-111,7
+111,7
@@
LWS_VISIBLE int lws_poll_listen_fd(struct lws_pollfd *fd)
fd_set readfds;
struct timeval tv = { 0, 0 };
- assert(
fd->events
== LWS_POLLIN);
+ assert(
(fd->events & LWS_POLLIN)
== LWS_POLLIN);
FD_ZERO(&readfds);
FD_SET(fd->fd, &readfds);