Use timeclear() instead of home grown version.
MFC after: 2 weeks
This commit is contained in:
parent
57ca132fc8
commit
6959b14df6
@ -832,7 +832,7 @@ main(int argc, char *const *argv)
|
||||
timeout.tv_sec++;
|
||||
}
|
||||
if (timeout.tv_sec < 0)
|
||||
timeout.tv_sec = timeout.tv_usec = 0;
|
||||
timerclear(&timeout);
|
||||
n = select(s + 1, &rfds, NULL, NULL, &timeout);
|
||||
if (n < 0)
|
||||
continue; /* Must be EINTR. */
|
||||
|
Loading…
Reference in New Issue
Block a user