{
int i;
struct udp *st=state;
- if (*nfds_io<st->n_socks) {
- *nfds_io=st->n_socks;
- return ERANGE;
- }
- *nfds_io=st->n_socks;
+ BEFOREPOLL_WANT_FDS(st->n_socks);
for (i=0; i<st->n_socks; i++) {
fds[i].fd=st->socks[i].fd;
fds[i].events=POLLIN;
for (i=0; i<st->n_socks; i++)
udp_make_socket(st,&st->socks[i]);
- register_for_poll(st,udp_beforepoll,udp_afterpoll,MAX_SOCKETS,"udp");
+ register_for_poll(st,udp_beforepoll,udp_afterpoll,"udp");
}
static list_t *udp_apply(closure_t *self, struct cloc loc, dict_t *context,