From 6019bdb044375db2b7309f1d50629540b67e044e Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 26 Jun 2007 06:08:15 +0000 Subject: [PATCH] replace gettimeofday with isc_time_now --- lib/dns/dispatch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index 720648c8a5..537380c915 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dispatch.c,v 1.101.2.6.2.18 2007/06/26 04:57:06 marka Exp $ */ +/* $Id: dispatch.c,v 1.101.2.6.2.19 2007/06/26 06:08:15 marka Exp $ */ #include @@ -29,6 +29,7 @@ #include #include #include +#include #include #include @@ -2567,12 +2568,12 @@ nsid_next(dns_nsid_t *nsid) { static isc_result_t nsid_init(isc_mem_t *mctx, dns_nsid_t *nsid, isc_boolean_t usepool) { - struct timeval now; + isc_time_t now; pid_t mypid; isc_uint16_t a1ndx, a2ndx, a3ndx, c1ndx, c2ndx, c3ndx; int i; - gettimeofday(&now, NULL); + isc_time_now(&now); mypid = getpid(); /* Initialize the state */