Date: Mon, 2 Jul 2012 02:38:27 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r237942 - head/sbin/ping Message-ID: <201207020238.q622cR4q038051@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207020238.q622cR4q038051>