--- rxvt-unicode/src/iom.C 2004/12/15 02:53:49 1.25 +++ rxvt-unicode/src/iom.C 2004/12/20 16:44:31 1.27 @@ -35,7 +35,7 @@ // for IOM_SIG #if IOM_SIG -# include +# include # include #endif @@ -416,13 +416,14 @@ iow.erase_unordered (i); else { - short revents = iow[i]->events; + io_watcher &w = *iow[i]; + short revents = w.events; - if (!FD_ISSET (iow[i]->fd, &rfd)) revents &= ~EVENT_READ; - if (!FD_ISSET (iow[i]->fd, &wfd)) revents &= ~EVENT_WRITE; + if (!FD_ISSET (w.fd, &rfd)) revents &= ~EVENT_READ; + if (!FD_ISSET (w.fd, &wfd)) revents &= ~EVENT_WRITE; if (revents) - iow[i]->call (*iow[i], revents); + w.call (w, revents); } #endif }