From 59189da02974ea4e5f2da1a35520429c3fce223e Mon Sep 17 00:00:00 2001 From: okan <> Date: Sat, 19 Mar 2011 23:40:11 +0000 Subject: [PATCH] use timerclear macro ok henning@ --- src/usr.sbin/ntpd/ntpd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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"); }