mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Silence a compiler warning on openbsd and fix windows build
This commit is contained in:
parent
20c52bf9b8
commit
b55338e447
1 changed files with 3 additions and 2 deletions
|
|
@ -400,6 +400,9 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
|
|||
}
|
||||
|
||||
if ((shuffle || sort)) {
|
||||
isc_uint32_t seed = 0;
|
||||
unsigned int j;
|
||||
|
||||
/*
|
||||
* First we get handles to all of the rdata.
|
||||
*/
|
||||
|
|
@ -416,8 +419,6 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
|
|||
}
|
||||
INSIST(i == count);
|
||||
|
||||
unsigned int j;
|
||||
isc_uint32_t seed;
|
||||
if (ISC_LIKELY(want_random)) {
|
||||
seed = isc_random32();
|
||||
j = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue