[dovecot-cvs] dovecot/src/lib ioloop-poll.c,1.13,1.14
cras at procontrol.fi
cras at procontrol.fi
Fri May 23 18:12:45 EEST 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv25008
Modified Files:
ioloop-poll.c
Log Message:
minor speedup
Index: ioloop-poll.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ioloop-poll.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- ioloop-poll.c 23 May 2003 13:54:51 -0000 1.13
+++ ioloop-poll.c 23 May 2003 14:12:43 -0000 1.14
@@ -183,11 +183,9 @@
i_assert(io->fd >= 0);
pollfd = &data->fds[data->fd_index[io->fd]];
- if (pollfd->revents != 0)
- ret--;
-
if (pollfd->revents == 0)
continue;
+ ret--;
if (pollfd->revents & POLLNVAL) {
i_error("invalid I/O fd %d, callback %p",
More information about the dovecot-cvs
mailing list