X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/14e23b0e1e595ef97e15f90c74749e7345f6abd7..e70f8e928edac3d89ea526a549f97860652c263e:/libcharybdis/kqueue.c diff --git a/libcharybdis/kqueue.c b/libcharybdis/kqueue.c index 327ca9f..9f76b7c 100644 --- a/libcharybdis/kqueue.c +++ b/libcharybdis/kqueue.c @@ -22,7 +22,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: kqueue.c 3205 2007-02-09 22:18:23Z nenolod $ + * $Id: kqueue.c 3229 2007-03-05 17:23:07Z nenolod $ */ #include "stdinc.h" @@ -156,7 +156,7 @@ void comm_setselect(int fd, fdlist_t list, unsigned int type, PF * handler, void *client_data, time_t timeout) { - fde_t *F = &fd_table[fd]; + fde_t *F = comm_locate_fd(fd); s_assert(fd >= 0); s_assert(F->flags.open); @@ -239,7 +239,7 @@ comm_select(unsigned long delay) { int fd = (int) ke[i].ident; PF *hdl = NULL; - fde_t *F = &fd_table[fd]; + fde_t *F = comm_locate_fd(fd); if(ke[i].flags & EV_ERROR) {