diff options
author | Joakim Soderberg <joakim.soderberg@gmail.com> | 2013-12-09 16:54:57 +0100 |
---|---|---|
committer | Joakim Soderberg <joakim.soderberg@gmail.com> | 2013-12-09 16:54:57 +0100 |
commit | e6b2a26755ecd8b532a58b34c7aacd404454c5fb (patch) | |
tree | 070c4a2d29a51bccc41078180940cb1a1c8af077 /evdns.c | |
parent | 45eba6ffd5cf28e20d906a6bb0e2c8a2e242ba56 (diff) | |
download | libevent-e6b2a26755ecd8b532a58b34c7aacd404454c5fb.tar.gz |
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.
Diffstat (limited to 'evdns.c')
-rw-r--r-- | evdns.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |