mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
replace gettimeofday with isc_time_now
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: dispatch.c,v 1.135 2007/06/26 05:00:53 marka Exp $ */
|
/* $Id: dispatch.c,v 1.136 2007/06/26 06:02:37 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -31,6 +31,7 @@
|
|||||||
#include <isc/print.h>
|
#include <isc/print.h>
|
||||||
#include <isc/string.h>
|
#include <isc/string.h>
|
||||||
#include <isc/task.h>
|
#include <isc/task.h>
|
||||||
|
#include <isc/time.h>
|
||||||
#include <isc/util.h>
|
#include <isc/util.h>
|
||||||
|
|
||||||
#include <dns/acl.h>
|
#include <dns/acl.h>
|
||||||
@@ -2618,12 +2619,12 @@ nsid_next(dns_nsid_t *nsid) {
|
|||||||
|
|
||||||
static isc_result_t
|
static isc_result_t
|
||||||
nsid_init(isc_mem_t *mctx, dns_nsid_t *nsid, isc_boolean_t usepool) {
|
nsid_init(isc_mem_t *mctx, dns_nsid_t *nsid, isc_boolean_t usepool) {
|
||||||
struct timeval now;
|
isc_time_t now;
|
||||||
pid_t mypid;
|
pid_t mypid;
|
||||||
isc_uint16_t a1ndx, a2ndx, a3ndx, c1ndx, c2ndx, c3ndx;
|
isc_uint16_t a1ndx, a2ndx, a3ndx, c1ndx, c2ndx, c3ndx;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
gettimeofday(&now, NULL);
|
isc_time_now(&now);
|
||||||
mypid = getpid();
|
mypid = getpid();
|
||||||
|
|
||||||
/* Initialize the state */
|
/* Initialize the state */
|
||||||
|
Reference in New Issue
Block a user