mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-02 05:20:33 -05:00
replace gettimeofday with isc_time_now
This commit is contained in:
parent
d9c4cb079d
commit
fdb3c848d7
1 changed files with 4 additions and 4 deletions
|
|
@ -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 <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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue