From: Mark Andrews Date: Tue, 26 Jun 2007 06:10:08 +0000 (+0000) Subject: replace gettimeofday with isc_time_now X-Git-Tag: v9.2.0b1^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdb3c848d7bcde92cfccc88b138f9bf678cc92e9;p=thirdparty%2Fbind9.git replace gettimeofday with isc_time_now --- diff --git a/lib/dns/dispatch.c b/lib/dns/dispatch.c index f7af856ea0d..0af9d3a4001 100644 --- a/lib/dns/dispatch.c +++ b/lib/dns/dispatch.c @@ -15,13 +15,12 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dispatch.c,v 1.101.2.19 2007/06/26 04:54:53 marka Exp $ */ +/* $Id: dispatch.c,v 1.101.2.20 2007/06/26 06:10:08 marka Exp $ */ #include #include #include -#include #include #include @@ -30,6 +29,7 @@ #include #include #include +#include #include #include @@ -2451,12 +2451,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 */