summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mrinfo
diff options
context:
space:
mode:
authorokan <okan@openbsd.org>2011-03-22 10:16:23 +0000
committerokan <okan@openbsd.org>2011-03-22 10:16:23 +0000
commit6c2da34c701487e6cd820640c4c9f2e778fd6621 (patch)
treec4ca3da6aaace82debb3ee15e1a5bec423abf2bb /usr.sbin/mrinfo
parentdon't refer to an error message which no longer exists (bge's jumbo buffer (diff)
downloadwireguard-openbsd-6c2da34c701487e6cd820640c4c9f2e778fd6621.tar.xz
wireguard-openbsd-6c2da34c701487e6cd820640c4c9f2e778fd6621.zip
use timerclear macro
ok miod@
Diffstat (limited to 'usr.sbin/mrinfo')
-rw-r--r--usr.sbin/mrinfo/mrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mrinfo/mrinfo.c b/usr.sbin/mrinfo/mrinfo.c
index 9dc0a6fdfba..08962772dc3 100644
--- a/usr.sbin/mrinfo/mrinfo.c
+++ b/usr.sbin/mrinfo/mrinfo.c
@@ -419,7 +419,7 @@ main(int argc, char *argv[])
--tv.tv_sec;
}
if (tv.tv_sec < 0)
- tv.tv_sec = tv.tv_usec = 0;
+ timerclear(&tv);
count = poll(pfd, 1, tv.tv_sec * 1000);