mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
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:
parent
45eba6ffd5
commit
e6b2a26755
2
evdns.c
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user