diff options
author | delphij <delphij@FreeBSD.org> | 2012-07-02 02:38:27 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2012-07-02 02:38:27 +0000 |
commit | ca1787f8ea25851a7546bff623a8c308cb3b5388 (patch) | |
tree | a45cc7babba252a23260ea1134fafd488edfa086 /sbin/ping | |
parent | 1e8cef649c29bf177f860eebc48ef7817186a7c2 (diff) | |
download | FreeBSD-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.c | 2 |
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. */ |