summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2012-05-08 15:44:09 +0000
committerroot <root>2012-05-08 15:44:09 +0000
commite2f8e6020448c0b1927bdce2239657d78817ee02 (patch)
tree2371c1349f7c9445245c6c8e9ff99009106207f0
parente4734317d1681eac71ef631844211645f880ffa3 (diff)
*** empty log message ***
-rw-r--r--ev.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ev.c b/ev.c
index fe7cfa7..5590f23 100644
--- a/ev.c
+++ b/ev.c
@@ -204,6 +204,7 @@
# include <io.h>
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
+# include <winsock2.h>
# ifndef EV_SELECT_IS_WINSOCKET
# define EV_SELECT_IS_WINSOCKET 1
# endif
@@ -2579,10 +2580,12 @@ ev_verify (EV_P) EV_THROW
{
verify_watcher (EV_A_ (W)w);
- if (++j & 1)
- w2 = w2->next;
+ if (j++ & 1)
+ {
+ assert (("libev: io watcher list contains a loop", w != w2));
+ w2 = w2->next;
+ }
- assert (("libev: io watcher list contains a loop", w != w2));
assert (("libev: inactive fd watcher on anfd list", ev_active (w) == 1));
assert (("libev: fd mismatch between watcher and anfd", ((ev_io *)w)->fd == i));
}