Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I3dd65946c220f958a4fda0551b053d690bf06c39
timeout = 0;
if (rv >= maxevents)
goto done;
timeout = 0;
if (rv >= maxevents)
goto done;
}
else if (PREDICT_FALSE (rv < 0))
{
}
else if (PREDICT_FALSE (rv < 0))
{
libc_evts = &events[rv];
libc_num_ev =
libc_evts = &events[rv];
libc_num_ev =
- libc_epoll_pwait (libc_epfd, libc_evts, maxevents - rv, timeout, sigmask);
+ libc_epoll_pwait (libc_epfd, libc_evts, maxevents, timeout, sigmask);
if (libc_num_ev <= 0)
{
rv = rv >= 0 ? rv : -1;
if (libc_num_ev <= 0)
{
rv = rv >= 0 ? rv : -1;