]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - libcharybdis/ports.c
[svn] - use a hashtable for fdlist storage. first step to making the amount of allowe...
[irc/rqf/shadowircd.git] / libcharybdis / ports.c
index ffb8955d2baaf26f53cccb632cc6ce8724e841f2..d774b4edff778e156acb8726b72044575770b368 100644 (file)
@@ -98,7 +98,7 @@ void
 ircd_setselect(int fd, fdlist_t list, unsigned int type, PF * handler,
               void *client_data)
 {
-       fde_t *F = &fd_table[fd];
+       fde_t *F = comm_locate_fd(fd);
        s_assert(fd >= 0);
        s_assert(F->flags.open);
 
@@ -148,7 +148,7 @@ ircd_select(unsigned long delay)
                case PORT_SOURCE_FD:
                        fd = pelst[i].portev_object;
                        PF *hdl = NULL;
-                       fde_t *F = &fd_table[fd];
+                       fde_t *F = comm_locate_fd(fd);
 
                        if ((pelst[i].portev_events & POLLRDNORM) && (hdl = F->read_handler)) {
                                F->read_handler = NULL;