Fix incorrect logical expression
This commit is contained in:
parent
533868b21e
commit
c7f3f9df4e
@ -51,8 +51,8 @@ void TracerouteListener::listen(class TracerouteEvents &tracerouteEvents) {
|
|||||||
activeFds = (int*)malloc(eventCount * sizeof(int));
|
activeFds = (int*)malloc(eventCount * sizeof(int));
|
||||||
|
|
||||||
for (i=0;i<FD_COUNT;i++) {
|
for (i=0;i<FD_COUNT;i++) {
|
||||||
if ((fds[i].revents & POLLIN == POLLIN) ||
|
if (((fds[i].revents & POLLIN) == POLLIN) ||
|
||||||
(fds[i].revents & POLLPRI == POLLPRI)) {
|
((fds[i].revents & POLLPRI) == POLLPRI)) {
|
||||||
activeFds[index++] = fds[i].fd;
|
activeFds[index++] = fds[i].fd;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user