diff options
author | Roger Dingledine <arma@torproject.org> | 2003-12-05 09:51:49 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-12-05 09:51:49 +0000 |
commit | e0952d07735c60cbe420cec74b7e95c8d3eb61f0 (patch) | |
tree | c670f9c9f7c7c81cbdc30978669861fc765b85ea /src/or/onion.c | |
parent | 727a260a81f7313d391fc95bebf21bcf745d5294 (diff) | |
download | tor-e0952d07735c60cbe420cec74b7e95c8d3eb61f0.tar.gz tor-e0952d07735c60cbe420cec74b7e95c8d3eb61f0.zip |
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.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 0f67d37ebd..168a41387b 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; |