mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 23:25:38 +00:00
Merge branch 'silence-openbsd-warning' into 'master'
Silence a compiler warning on openbsd and fix windows build See merge request isc-projects/bind9!603
This commit is contained in:
@@ -400,6 +400,9 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((shuffle || sort)) {
|
if ((shuffle || sort)) {
|
||||||
|
isc_uint32_t seed = 0;
|
||||||
|
unsigned int j;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* First we get handles to all of the rdata.
|
* 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);
|
INSIST(i == count);
|
||||||
|
|
||||||
unsigned int j;
|
|
||||||
isc_uint32_t seed;
|
|
||||||
if (ISC_LIKELY(want_random)) {
|
if (ISC_LIKELY(want_random)) {
|
||||||
seed = isc_random32();
|
seed = isc_random32();
|
||||||
j = 0;
|
j = 0;
|
||||||
|
Reference in New Issue
Block a user