Skip to content

Commit

Permalink
Added missing assignments to revents in poll
Browse files Browse the repository at this point in the history
  • Loading branch information
nikarh authored and d3m3vilurr committed Sep 12, 2023
1 parent 6a97e00 commit 5259c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newlib/libc/sys/vita/poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout)
{
// regular files always poll true for in/out
if (_pfd[i].events & POLLIN)
_pfd[i].revents | POLLIN;
_pfd[i].revents |= POLLIN;
if (_pfd[i].events & POLLOUT)
_pfd[i].revents | POLLOUT;
_pfd[i].revents |= POLLOUT;
if ((_pfd[i].events & POLLIN) || (_pfd[i].events & POLLOUT))
res++;
}
Expand Down

0 comments on commit 5259c80

Please sign in to comment.