diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-10 09:02:26 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-10 09:02:26 +0000 |
commit | 7ddd9e8cd9472af6c4fa84173fb3e0c5d1b00335 (patch) | |
tree | 3fa22d97d784b03ee0bfc9713b9a949b05a11034 /src/or/dns.c | |
parent | 3da737ac98f6e793ed94da019e14129e873ee3f0 (diff) | |
download | tor-7ddd9e8cd9472af6c4fa84173fb3e0c5d1b00335.tar.gz tor-7ddd9e8cd9472af6c4fa84173fb3e0c5d1b00335.zip |
r7304@Kushana: nickm | 2006-08-10 01:58:05 -0700
Fix verbose compilation errors; make sure transparent proxy fails when no method is configured.
svn:r7012
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index dc54626b8b..4377d0a24b 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -95,7 +95,7 @@ typedef struct cached_resolve_t { pending_connection_t *pending_connections; } cached_resolve_t; -static void purge_expired_resolves(uint32_t now); +static void purge_expired_resolves(time_t now); static void dns_found_answer(const char *address, uint32_t addr, char outcome, uint32_t ttl); static void send_resolved_cell(edge_connection_t *conn, uint8_t answer_type); @@ -253,7 +253,7 @@ dns_free_all(void) /** Remove every cached_resolve whose <b>expire</b> time is before <b>now</b> * from the cache. */ static void -purge_expired_resolves(uint32_t now) +purge_expired_resolves(time_t now) { cached_resolve_t *resolve, *removed; pending_connection_t *pend; @@ -386,7 +386,7 @@ dns_resolve(edge_connection_t *exitconn) pending_connection_t *pending_connection; struct in_addr in; circuit_t *circ; - uint32_t now = time(NULL); + time_t now = time(NULL); assert_connection_ok(TO_CONN(exitconn), 0); tor_assert(exitconn->_base.s == -1); |