Commit 057e689f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix minor errors

parent c0b2d638
......@@ -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
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment