summaryrefslogtreecommitdiff
path: root/usr.sbin/mrinfo
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2011-03-22 10:16:24 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2011-03-22 10:16:24 +0000
commitf96dfa13e2e32079a84f0671399cd4ea025b9692 (patch)
tree316c38084fdd1cbfb93282b96970a7e589880ce0 /usr.sbin/mrinfo
parent9eec10ca91344ea38ad949d967ef2dc9098c30a6 (diff)
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);