summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-02-28 22:34:47 +0000
committerRoger Dingledine <arma@torproject.org>2004-02-28 22:34:47 +0000
commit5701cc2359d5431354b17820819e4117f471952b (patch)
tree2f9247a155907e768c626aa3d16e9bdcaae72855
parent0a673f44910e088f03eab4d3f9aeb963e02ee40a (diff)
downloadtor-5701cc2359d5431354b17820819e4117f471952b.tar.gz
tor-5701cc2359d5431354b17820819e4117f471952b.zip
fix the function comment
svn:r1169
-rw-r--r--src/or/dns.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/or/dns.c b/src/or/dns.c
index 15b7015125..54997ee4ce 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -191,7 +191,6 @@ static int assign_to_dnsworker(connection_t *exitconn) {
return 0;
}
-
void connection_dns_remove(connection_t *conn)
{
struct pending_connection_t *pend, *victim;
@@ -233,9 +232,8 @@ void connection_dns_remove(connection_t *conn)
}
}
-/* If onlyconn is NULL, cancel all pending connections. If onlyconn is
- * defined, then remove onlyconn from the pending list. Does not cancel the
- * resolve itself, or remove the 'struct cached_resolve' from the cache.
+/* Cancel all pending connections. Then cancel the resolve itself,
+ * and remove the 'struct cached_resolve' from the cache.
*/
void dns_cancel_pending_resolve(char *address) {
struct pending_connection_t *pend;
@@ -284,7 +282,6 @@ void dns_cancel_pending_resolve(char *address) {
SPLAY_REMOVE(cache_tree, &cache_root, resolve);
free(resolve);
-
}
static void dns_found_answer(char *address, uint32_t addr) {