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.
This commit is contained in:
Joakim Soderberg 2013-12-09 16:54:57 +01:00
parent 45eba6ffd5
commit e6b2a26755

View File

@ -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);