X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/cf5f1149caccf65c700e73fc0e9212c916df3610..ee697dd98d0f9aca6b9df7ffb32d3a15b4e33d6d:/tun.c diff --git a/tun.c b/tun.c index 9ef3a9d..102a24c 100644 --- a/tun.c +++ b/tun.c @@ -98,7 +98,7 @@ static int tun_beforepoll(void *sst, struct pollfd *fds, int *nfds_io, int *timeout_io) { struct tun *st=sst; - *nfds_io=1; + BEFOREPOLL_WANT_FDS(1); fds[0].fd=st->fd; fds[0].events=POLLIN; return 0;