summaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2012-07-02 02:38:27 +0000
committerdelphij <delphij@FreeBSD.org>2012-07-02 02:38:27 +0000
commitca1787f8ea25851a7546bff623a8c308cb3b5388 (patch)
treea45cc7babba252a23260ea1134fafd488edfa086 /sbin/ping
parent1e8cef649c29bf177f860eebc48ef7817186a7c2 (diff)
downloadFreeBSD-src-ca1787f8ea25851a7546bff623a8c308cb3b5388.zip
FreeBSD-src-ca1787f8ea25851a7546bff623a8c308cb3b5388.tar.gz
Use timeclear() instead of home grown version.
MFC after: 2 weeks
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index baf7faa..f8f62d1 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -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. */
OpenPOWER on IntegriCloud