]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix for pre C99 compiler
authorMark Andrews <marka@isc.org>
Sun, 12 Jan 2014 22:29:25 +0000 (09:29 +1100)
committerMark Andrews <marka@isc.org>
Sun, 12 Jan 2014 22:29:25 +0000 (09:29 +1100)
lib/dns/resolver.c

index bf0ce47a89c5a8869871bdd3c5b199643e351405..a5d119e52c5c6bd1375b57481f00e4b1df39805c 100644 (file)
@@ -4141,6 +4141,7 @@ validated(isc_task_t *task, isc_event_t *event) {
        isc_result_t result = ISC_R_SUCCESS;
        isc_stdtime_t now;
        isc_uint32_t ttl;
+       unsigned options;
 
        UNUSED(task); /* for now */
 
@@ -4382,7 +4383,7 @@ validated(isc_task_t *task, isc_event_t *event) {
        if (result != ISC_R_SUCCESS)
                goto noanswer_response;
 
-       unsigned options = 0;
+       options = 0;
        if ((fctx->options & DNS_FETCHOPT_PREFETCH) != 0)
                options = DNS_DBADD_PREFETCH;
        result = dns_db_addrdataset(fctx->cache, node, NULL, now,