From: RĂ©mi Denis-Courmont Date: Mon, 12 Feb 2007 17:29:51 +0000 (+0000) Subject: Fix minor errors X-Git-Tag: 0.9.0-test0~8606 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=057e689f92d55d9b3e5889a18e749b62f1fe3924;p=vlc Fix minor errors --- diff --git a/include/vlc_network.h b/include/vlc_network.h index 36b64c5d04..bc35ffe9d7 100644 --- a/include/vlc_network.h +++ b/include/vlc_network.h @@ -146,7 +146,7 @@ enum { POLLIN=1, POLLOUT=2, - POLLPRI=4 + POLLPRI=4, POLLERR=8, // unsupported stub POLLHUP=16, // unsupported stub POLLNVAL=32 // unsupported stub diff --git a/src/network/poll.c b/src/network/poll.c index b8b19721a2..b50cb835d8 100644 --- a/src/network/poll.c +++ b/src/network/poll.c @@ -69,9 +69,9 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout) for (unsigned i = 0; i < nfds; i++) { int fd = fds[i].fd; - fds[i].revents = (FD_ISSET (fds[i].fd, &rdset) ? POLLIN : 0) - | (FD_ISSET (fds[i].fd, &wrset) ? POLLOUT : 0) - | (FD_ISSET (fds[i].fd, &exset) ? POLLPRI : 0); + fds[i].revents = (FD_ISSET (fd, &rdset) ? POLLIN : 0) + | (FD_ISSET (fd, &wrset) ? POLLOUT : 0) + | (FD_ISSET (fd, &exset) ? POLLPRI : 0); } return val; }