]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
move declaration to start of block
authorMark Andrews <marka@isc.org>
Fri, 5 Sep 2014 01:39:42 +0000 (11:39 +1000)
committerMark Andrews <marka@isc.org>
Fri, 5 Sep 2014 01:39:42 +0000 (11:39 +1000)
lib/dns/badcache.c

index 8b9939c3d6506528c87f21f73692bb7ff4ed658d..ddbd6511f52d32ac812ce658e8bd359dc04c6e98 100644 (file)
@@ -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);