diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-11 07:09:45 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-11 07:09:45 +0000 |
commit | 04bf4b0fc40557ca18aedea65a9032075b28e5ac (patch) | |
tree | b98324dfd7559e8d77002c49b4cb1c9a7d84bc11 /src/or/dns.c | |
parent | ffab3b48a82928e0eb36369eee1e3e56bae0020c (diff) | |
download | tor-04bf4b0fc40557ca18aedea65a9032075b28e5ac.tar.gz tor-04bf4b0fc40557ca18aedea65a9032075b28e5ac.zip |
r7327@Kushana: nickm | 2006-08-11 00:00:36 -0700
Fix a pedantic warning
svn:r7023
Diffstat (limited to 'src/or/dns.c')
-rw-r--r-- | src/or/dns.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/or/dns.c b/src/or/dns.c index 4377d0a24b..4479d2b80b 100644 --- a/src/or/dns.c +++ b/src/or/dns.c @@ -312,8 +312,8 @@ purge_expired_resolves(time_t now) if (removed != resolve) { log_err(LD_BUG, "The expired resolve we purged didn't match any in" " the cache. Tried to purge %s (%p); instead got %s (%p).", - resolve->address, resolve, - removed ? removed->address : "NULL", remove); + resolve->address, (void*)resolve, + removed ? removed->address : "NULL", (void*)remove); } tor_assert(removed == resolve); resolve->magic = 0xF0BBF0BB; @@ -362,6 +362,7 @@ send_resolved_cell(edge_connection_t *conn, uint8_t answer_type) } default: tor_assert(0); + return; } connection_edge_send_command(conn, circuit_get_by_edge_conn(conn), RELAY_COMMAND_RESOLVED, buf, buflen, @@ -619,8 +620,8 @@ dns_cancel_pending_resolve(char *address) if (tmp != resolve) { log_err(LD_BUG, "The cancelled resolve we purged didn't match any in" " the cache. Tried to purge %s (%p); instead got %s (%p).", - resolve->address, resolve, - tmp ? tmp->address : "NULL", tmp); + resolve->address, (void*)resolve, + tmp ? tmp->address : "NULL", (void*)tmp); } tor_assert(tmp == resolve); resolve->magic = 0xABABABAB; @@ -749,8 +750,8 @@ dns_found_answer(const char *address, uint32_t addr, char outcome, if (removed != resolve) { log_err(LD_BUG, "The pending resolve we found wasn't removable from" " the cache. Tried to purge %s (%p); instead got %s (%p).", - resolve->address, resolve, - removed ? removed->address : "NULL", removed); + resolve->address, (void*)resolve, + removed ? removed->address : "NULL", (void*)removed); } assert_resolve_ok(resolve); assert_cache_ok(); |