svn commit: r237942 - head/sbin/ping
Xin LI
delphij at FreeBSD.org
Mon Jul 2 02:38:28 UTC 2012
Author: delphij
Date: Mon Jul 2 02:38:27 2012
New Revision: 237942
URL: http://svn.freebsd.org/changeset/base/237942
Log:
Use timeclear() instead of home grown version.
MFC after: 2 weeks
Modified:
head/sbin/ping/ping.c
Modified: head/sbin/ping/ping.c
==============================================================================
--- head/sbin/ping/ping.c Mon Jul 2 02:36:05 2012 (r237941)
+++ head/sbin/ping/ping.c Mon Jul 2 02:38:27 2012 (r237942)
@@ -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. */
More information about the svn-src-head
mailing list