summaryrefslogtreecommitdiff
path: root/src/or/connection_or.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-09-05 22:09:44 +0000
committerNick Mathewson <nickm@torproject.org>2008-09-05 22:09:44 +0000
commitbaeb260ad18842118f3574ab7ad73fb78c6a4b43 (patch)
tree4420e9b557fe6322c2d1ffe8ebe370c94405241b /src/or/connection_or.c
parentcd5d0f389045af1aefce305065b1da16dc4a94af (diff)
downloadtor-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/connection_or.c')
-rw-r--r--src/or/connection_or.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c
index f67f4768b3..96b2074c40 100644
--- a/src/or/connection_or.c
+++ b/src/or/connection_or.c
@@ -524,7 +524,7 @@ connection_or_connect(const tor_addr_t *_addr, uint16_t port,
return NULL;
}
- conn = TO_OR_CONN(connection_new(CONN_TYPE_OR, AF_INET));
+ conn = or_connection_new(AF_INET);
/* set up conn so it's got all the data we need to remember */
connection_or_init_conn_from_address(conn, &addr, port, id_digest, 1);