Commit 2f611cf6 authored by Evan Hunt's avatar Evan Hunt Committed by Ondřej Surý
Browse files

Silence a compiler warning on openbsd and fix windows build

(cherry picked from commit b55338e4)
parent ab6d3e75
Pipeline #3492 passed with stages
in 9 minutes and 54 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment