Use timeclear() instead of home grown version.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2012-07-02 02:38:27 +00:00
parent 57ca132fc8
commit 6959b14df6

View File

@ -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. */