2 Jul 2012 04:38
svn commit: r237942 - head/sbin/ping
Xin LI <delphij <at> FreeBSD.org>
2012-07-02 02:38:27 GMT
2012-07-02 02:38:27 GMT
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) <at> <at> -832,7 +832,7 <at> <at> 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. */ _______________________________________________ svn-src-all <at> freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe <at> freebsd.org"(Continue reading)
RSS Feed