aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-12-05 09:51:49 +0000
committerRoger Dingledine <arma@torproject.org>2003-12-05 09:51:49 +0000
commite0952d07735c60cbe420cec74b7e95c8d3eb61f0 (patch)
treec670f9c9f7c7c81cbdc30978669861fc765b85ea /src/or/onion.c
parent727a260a81f7313d391fc95bebf21bcf745d5294 (diff)
downloadtor-e0952d07735c60cbe420cec74b7e95c8d3eb61f0.tar
tor-e0952d07735c60cbe420cec74b7e95c8d3eb61f0.tar.gz
terminology shift:
directory is the string that dirserv.c and directory.c deal with routerlist is routerinfo's that are bundled together in routers.c rename some of the get_routerlist functions to set_routerlist preparing to break into router.c for stuff the router does, and routerlist.c for handling routerlist. svn:r886
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 0f67d37eb..168a41387 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -221,7 +221,7 @@ static int new_route_len(double cw, routerinfo_t **rarray, int rarray_len) {
return routelen;
}
-static routerinfo_t *choose_good_exit_server(directory_t *dir)
+static routerinfo_t *choose_good_exit_server(routerlist_t *dir)
{
int *n_supported;
int *n_maybe_supported;
@@ -383,12 +383,12 @@ static routerinfo_t *choose_good_exit_server(directory_t *dir)
}
cpath_build_state_t *onion_new_cpath_build_state(void) {
- directory_t *dir;
+ routerlist_t *dir;
int r;
cpath_build_state_t *info;
routerinfo_t *exit;
- router_get_directory(&dir);
+ router_get_routerlist(&dir);
r = new_route_len(options.PathlenCoinWeight, dir->routers, dir->n_routers);
if (r < 0)
return NULL;