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. */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to