Silence a compiler warning on openbsd and fix windows build

(cherry picked from commit b55338e447)
This commit is contained in:
Evan Hunt
2018-08-08 09:36:02 +02:00
committed by Ondřej Surý
parent ab6d3e758d
commit 2f611cf600
+3 -1
View File
@@ -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,7 +419,6 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name,
}
INSIST(i == count);
unsigned int j, seed;
if (ISC_LIKELY(want_random)) {
isc_random_get(&seed);
j = 0;