summaryrefslogtreecommitdiff
path: root/src/or/directory.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/directory.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/directory.c')
-rw-r--r--src/or/directory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 4f4d94af33..22f9678970 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -683,7 +683,7 @@ directory_initiate_command(const char *address, const tor_addr_t *_addr,
log_debug(LD_DIR, "Initiating %s", dir_conn_purpose_to_string(dir_purpose));
- conn = TO_DIR_CONN(connection_new(CONN_TYPE_DIR, AF_INET));
+ conn = dir_connection_new(AF_INET);
/* set up conn so it's got all the data we need to remember */
tor_addr_copy(&conn->_base.addr, &addr);