From 3d10541474ac371b82dc05250735817cef2a8025 Mon Sep 17 00:00:00 2001 From: Joakim Soderberg Date: Mon, 9 Dec 2013 16:58:16 +0100 Subject: [PATCH] Fix non-C89 variable declaration. Microsofts C compiler does not support the C99 standard, so variables has to be declared at the start of a scope. --- evdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evdns.c b/evdns.c index 28ea0f6c..ca274a94 100644 --- a/evdns.c +++ b/evdns.c @@ -4047,8 +4047,8 @@ evdns_base_free(struct evdns_base *base, int fail_requests) void evdns_base_clear_host_addresses(struct evdns_base *base) { - EVDNS_LOCK(base); struct hosts_entry *victim; + EVDNS_LOCK(base); while ((victim = TAILQ_FIRST(&base->hostsdb))) { TAILQ_REMOVE(&base->hostsdb, victim, next); mm_free(victim); -- 2.40.0