Fix compilation problems in win32.c

svn:r1322
This commit is contained in:
Nick Mathewson 2009-05-28 20:44:04 +00:00
parent eb97bb76e1
commit a43a1c2b23

View File

@ -327,7 +327,7 @@ win32_dispatch(struct event_base *base, struct timeval *tv)
if (win32op->exset_out->fd_count) {
i = rand() % win32op->exset_out->fd_count;
for (j=0; j<win32op->exset_out->fd_count; ++j) {
if (++i >= win32op-exset_out->fd_count)
if (++i >= win32op->exset_out->fd_count)
i = 0;
s = win32op->exset_out->fd_array[i];
evmap_io_active(base, s, EV_READ);
@ -336,7 +336,7 @@ win32_dispatch(struct event_base *base, struct timeval *tv)
if (win32op->writeset_out->fd_count) {
i = rand() % win32op->writeset_out->fd_count;
for (j=0; j<win32op->writeset_out->fd_count; ++j) {
if (++i >= win32op-exset_out->fd_count)
if (++i >= win32op->writeset_out->fd_count)
i = 0;
SOCKET s = win32op->writeset_out->fd_array[i];
evmap_io_active(base, s, EV_WRITE);