Commit 06dbd20c authored by Mark Andrews's avatar Mark Andrews

move declaration to start of block

parent 1aa8b807
......@@ -303,16 +303,16 @@ dns_badcache_flush(dns_badcache_t *bc) {
void
dns_badcache_flushname(dns_badcache_t *bc, dns_name_t *name) {
unsigned int i;
dns_bcentry_t *bad, *prev, *next;
isc_result_t result;
isc_time_t now;
unsigned int i;
REQUIRE(VALID_BADCACHE(bc));
REQUIRE(name != NULL);
LOCK(&bc->lock);
isc_time_t now;
isc_result_t result;
result = isc_time_now(&now);
if (result != ISC_R_SUCCESS)
isc_time_settoepoch(&now);
......
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