X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Feventl.c;h=990dbfe0afd4f622cafd6c15c7bb4f5a28ca6957;hb=e6d6362b750ae25591ee5a40e135878fd590e13e;hp=f178015e980f8633eb4aa85d63e782d090986307;hpb=03e77a36926d8db74ac218397ddce9ccf181a4d9;p=pazpar2-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index f178015..990dbfe 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -127,8 +127,6 @@ IOCHAN iochan_create(int fd, IOC_CALLBACK cb, int flags, new_iochan->fd = fd; new_iochan->flags = flags; new_iochan->fun = cb; - new_iochan->socketfun = NULL; - new_iochan->maskfun = NULL; new_iochan->last_event = new_iochan->max_idle = 0; new_iochan->next = NULL; new_iochan->man = 0; @@ -222,10 +220,6 @@ static int event_loop(iochan_man_t man, IOCHAN *iochans) { if (p->thread_users > 0) continue; - if (p->maskfun) - p->flags = (*p->maskfun)(p); - if (p->socketfun) - p->fd = (*p->socketfun)(p); if (p->max_idle && p->max_idle < to.tv_sec) to.tv_sec = p->max_idle; if (p->fd < 0)