diff --git a/src/usr.sbin/ntpd/ntpd.c b/src/usr.sbin/ntpd/ntpd.c index 25d7a21c..02a5e52c 100644 --- a/src/usr.sbin/ntpd/ntpd.c +++ b/src/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 @@ -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"); }