diff options
author | Roger Dingledine <arma@torproject.org> | 2003-12-06 05:54:04 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-12-06 05:54:04 +0000 |
commit | c25fbd2676137db8d94da39e98dba3a88b971727 (patch) | |
tree | 14c7b9c4dcef53e17ea6a21ab790ef4dcd2afdf1 /src/or/onion.c | |
parent | e0952d07735c60cbe420cec74b7e95c8d3eb61f0 (diff) | |
download | tor-c25fbd2676137db8d94da39e98dba3a88b971727.tar.gz tor-c25fbd2676137db8d94da39e98dba3a88b971727.zip |
break routers.c into router.c for stuff the router does,
and routerlist.c for handling routerlist.
svn:r887
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 168a41387b..0434436ad3 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -383,16 +383,16 @@ static routerinfo_t *choose_good_exit_server(routerlist_t *dir) } cpath_build_state_t *onion_new_cpath_build_state(void) { - routerlist_t *dir; + routerlist_t *rl; int r; cpath_build_state_t *info; routerinfo_t *exit; - router_get_routerlist(&dir); - r = new_route_len(options.PathlenCoinWeight, dir->routers, dir->n_routers); + router_get_routerlist(&rl); + r = new_route_len(options.PathlenCoinWeight, rl->routers, rl->n_routers); if (r < 0) return NULL; - exit = choose_good_exit_server(dir); + exit = choose_good_exit_server(rl); if(!exit) return NULL; info = tor_malloc(sizeof(cpath_build_state_t)); |