From 67b775bc6e5f07cdb3baae23b7ff3db47c435a03 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 15 Aug 2006 04:50:17 +0000 Subject: 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 --- src/or/dns.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/or/dns.c') 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 -- cgit v1.2.3-54-g00ecf