--- rxvt-unicode/src/iom.C 2004/01/16 22:11:09 1.8 +++ rxvt-unicode/src/iom.C 2004/01/17 01:20:01 1.9 @@ -1,6 +1,6 @@ /* iom.C -- generic I/O multiplexor - Copyright (C) 2003 Marc Lehmann + Copyright (C) 2003, 2004 Marc Lehmann This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,8 +17,6 @@ Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "../config.h" - #include #include #include @@ -36,7 +34,7 @@ io_manager iom; template -void io_manager::reg (watcher *w, simplevec &queue) +void io_manager::reg (watcher *w, io_manager_vec &queue) { if (!iom_valid) abort (); @@ -49,7 +47,7 @@ } template -void io_manager::unreg (watcher *w, simplevec &queue) +void io_manager::unreg (watcher *w, io_manager_vec &queue) { if (!iom_valid) return; @@ -144,7 +142,7 @@ } break; } - else if (next->at >= 0) + else { unreg (next); next->call (*next); @@ -169,7 +167,7 @@ int fds = 0; - for (io_watcher **i = iow.end (); i-- > iow.begin (); ) + for (io_manager_vec::iterator i = iow.end (); i-- > iow.begin (); ) if (*i) { if ((*i)->events & EVENT_READ ) FD_SET ((*i)->fd, &rfd);