libubox: make uloop_fd::flags generic

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-06-18 11:11:04 +02:00
parent cd5238b500
commit e386259632
2 changed files with 2 additions and 2 deletions

View file

@ -230,6 +230,7 @@ static int register_poll(struct uloop_fd *fd, unsigned int flags)
ev.data.fd = fd->fd;
ev.data.ptr = fd;
fd->flags = flags;
return epoll_ctl(poll_fd, op, fd->fd, &ev);
}
@ -238,6 +239,7 @@ static struct epoll_event events[ULOOP_MAX_EVENTS];
static int __uloop_fd_delete(struct uloop_fd *sock)
{
sock->flags = 0;
return epoll_ctl(poll_fd, EPOLL_CTL_DEL, sock->fd, 0);
}

View file

@ -55,9 +55,7 @@ struct uloop_fd
bool eof;
bool error;
bool registered;
#ifdef USE_KQUEUE
uint8_t flags;
#endif
};
struct uloop_timeout