Fixed another regression in the timeout code.

The assignment needs extra parentheses, because it has lower precedence 
than the relational operator.
This commit is contained in:
Jef Driesen 2008-02-28 14:20:51 +00:00
parent 032f39cdd6
commit 0025221268

View File

@ -376,7 +376,7 @@ serial_poll_internal (int fd, int queue, long timeout, const struct timeval *tim
FD_SET (fd, &fds);
int rc = 0;
while (rc = MYSELECT (fd + 1, &fds, queue, timeout >= 0 ? &tvt : NULL) == -1) {
while ((rc = MYSELECT (fd + 1, &fds, queue, timeout >= 0 ? &tvt : NULL)) == -1) {
if (errno != EINTR ) {
TRACE ("select");
return -1;