diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-05 22:09:44 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-05 22:09:44 +0000 |
commit | baeb260ad18842118f3574ab7ad73fb78c6a4b43 (patch) | |
tree | 4420e9b557fe6322c2d1ffe8ebe370c94405241b /src/or/dnsserv.c | |
parent | cd5d0f389045af1aefce305065b1da16dc4a94af (diff) | |
download | tor-baeb260ad18842118f3574ab7ad73fb78c6a4b43.tar.gz tor-baeb260ad18842118f3574ab7ad73fb78c6a4b43.zip |
Refactor use of connection_new so that we get more verifiable typesafety.
svn:r16785
Diffstat (limited to 'src/or/dnsserv.c')
-rw-r--r-- | src/or/dnsserv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dnsserv.c b/src/or/dnsserv.c index c65dfe08ca..afd0f28364 100644 --- a/src/or/dnsserv.c +++ b/src/or/dnsserv.c @@ -108,7 +108,7 @@ evdns_server_callback(struct evdns_server_request *req, void *_data) } /* Make a new dummy AP connection, and attach the request to it. */ - conn = TO_EDGE_CONN(connection_new(CONN_TYPE_AP, AF_INET)); + conn = edge_connection_new(CONN_TYPE_AP, AF_INET); conn->_base.state = AP_CONN_STATE_RESOLVE_WAIT; conn->is_dns_request = 1; @@ -161,7 +161,7 @@ dnsserv_launch_request(const char *name, int reverse) char *q_name; /* Make a new dummy AP connection, and attach the request to it. */ - conn = TO_EDGE_CONN(connection_new(CONN_TYPE_AP, AF_INET)); + conn = edge_connection_new(CONN_TYPE_AP, AF_INET); conn->_base.state = AP_CONN_STATE_RESOLVE_WAIT; if (reverse) |