]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
replace gettimeofday with isc_time_now
authorMark Andrews <marka@isc.org>
Tue, 26 Jun 2007 06:10:08 +0000 (06:10 +0000)
committerMark Andrews <marka@isc.org>
Tue, 26 Jun 2007 06:10:08 +0000 (06:10 +0000)
lib/dns/dispatch.c

index f7af856ea0d32dafe351802aa5681f69b2d00eb0..0af9d3a4001bf9fefbab476cc2d9bf43f1ebb106 100644 (file)
  * 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 <config.h>
 
 #include <stdlib.h>
 #include <sys/types.h>
-#include <sys/time.h>
 #include <unistd.h>
 
 #include <isc/entropy.h>
@@ -30,6 +29,7 @@
 #include <isc/print.h>
 #include <isc/string.h>
 #include <isc/task.h>
+#include <isc/time.h>
 #include <isc/util.h>
 
 #include <dns/acl.h>
@@ -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 */