diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:16:24 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-22 10:16:24 +0000 |
commit | f96dfa13e2e32079a84f0671399cd4ea025b9692 (patch) | |
tree | 316c38084fdd1cbfb93282b96970a7e589880ce0 /usr.sbin/rtsold | |
parent | 9eec10ca91344ea38ad949d967ef2dc9098c30a6 (diff) |
use timerclear macro
ok miod@
Diffstat (limited to 'usr.sbin/rtsold')
-rw-r--r-- | usr.sbin/rtsold/rtsold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c index d26fa3442ab..dd09869f0cd 100644 --- a/usr.sbin/rtsold/rtsold.c +++ b/usr.sbin/rtsold/rtsold.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsold.c,v 1.45 2009/01/30 17:25:51 rainer Exp $ */ +/* $OpenBSD: rtsold.c,v 1.46 2011/03/22 10:16:23 okan Exp $ */ /* $KAME: rtsold.c,v 1.75 2004/01/03 00:00:07 itojun Exp $ */ /* @@ -545,7 +545,7 @@ rtsol_check_timer(void) return(NULL); } else if (timercmp(&rtsol_timer, &now, <)) /* this may occur when the interval is too small */ - returnval.tv_sec = returnval.tv_usec = 0; + timerclear(&returnval); else timersub(&rtsol_timer, &now, &returnval); |