diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-19 23:40:12 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2011-03-19 23:40:12 +0000 |
commit | 5fff35ce903d331d68cbfb1e3fa73edfb236866b (patch) | |
tree | ed031df54cfea2db52a5a7b6272e211909f82f2d /usr.sbin/ntpd | |
parent | 7f8c3f0c3b30fc03f92045b1a7edfb8969aeb139 (diff) |
use timerclear macro
ok henning@
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r-- | usr.sbin/ntpd/ntpd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c index 25d7a21cfba..02a5e52c697 100644 --- a/usr.sbin/ntpd/ntpd.c +++ b/usr.sbin/ntpd/ntpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntpd.c,v 1.68 2010/07/01 22:16:20 eric Exp $ */ +/* $OpenBSD: ntpd.c,v 1.69 2011/03/19 23:40:11 okan Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -345,8 +345,7 @@ reset_adjtime(void) { struct timeval tv; - tv.tv_sec = 0; - tv.tv_usec = 0; + timerclear(&tv); if (adjtime(&tv, NULL) == -1) log_warn("reset adjtime failed"); } |