diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-15 04:50:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-15 04:50:17 +0000 |
commit | 67b775bc6e5f07cdb3baae23b7ff3db47c435a03 (patch) | |
tree | 64295bf4bef9dc85da6c7157e6e056e254ec8bcf /src/or/dns.c | |
parent | 7bfb2cf4e819ad05b712fc38e055009dfdf3306f (diff) | |
download | tor-67b775bc6e5f07cdb3baae23b7ff3db47c435a03.tar.gz tor-67b775bc6e5f07cdb3baae23b7ff3db47c435a03.zip |
r7397@Kushana: nickm | 2006-08-15 00:46:18 -0400
Fix eventdns version of dns.c. Man, we need to get rid of this eventdns/dnsworker split.
svn:r7064
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 7b242caa89..05483d5352 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -107,8 +107,8 @@ static int spawn_enough_dnsworkers(void); #else static int configure_nameservers(void); #endif -static void _assert_cache_ok(void); #ifdef DEBUG_DNS_CACHE +static void _assert_cache_ok(void); #define assert_cache_ok() _assert_cache_ok() #else #define assert_cache_ok() do {} while(0) @@ -1186,7 +1186,7 @@ configure_nameservers(void) { or_options_t *options; if (nameservers_configured) - return; + return 0; options = get_options(); eventdns_set_log_fn(eventdns_log_cb); if (options->Nameservers && smartlist_len(options->Nameservers)) { @@ -1230,6 +1230,7 @@ configure_nameservers(void) #endif } nameservers_configured = 1; + return 0; } static void eventdns_callback(int result, char type, int count, int ttl, void *addresses, @@ -1311,6 +1312,7 @@ assert_resolve_ok(cached_resolve_t *resolve) } } +#ifdef DEBUG_DNS_CACHE static void _assert_cache_ok(void) { @@ -1331,4 +1333,4 @@ _assert_cache_ok(void) smartlist_pqueue_assert_ok(cached_resolve_pqueue, _compare_cached_resolves_by_expiry); } - +#endif |