From baeb260ad18842118f3574ab7ad73fb78c6a4b43 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 5 Sep 2008 22:09:44 +0000 Subject: Refactor use of connection_new so that we get more verifiable typesafety. svn:r16785 --- src/or/dnsserv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/dnsserv.c') 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) -- cgit v1.2.3-54-g00ecf