From: Mark Andrews Date: Sun, 12 Jan 2014 22:29:25 +0000 (+1100) Subject: fix for pre C99 compiler X-Git-Tag: v9.10.0a2~107 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c24b6b4a403c08ddf6405ce06a9b99c137380677;p=thirdparty%2Fbind9.git fix for pre C99 compiler --- diff --git a/lib/dns/resolver.c b/lib/dns/resolver.c index bf0ce47a89c..a5d119e52c5 100644 --- a/lib/dns/resolver.c +++ b/lib/dns/resolver.c @@ -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,