diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-12 16:23:12 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-12 16:23:12 -0500 |
commit | d7089ff228227259137b5a8bc32d0764a0ad4155 (patch) | |
tree | 2917ff13a5d0af4b77c46241a9a6c8be68dc5b83 /src/or/entrynodes.h | |
parent | bce5019eff37fc741747ef76c5d0a387569f9265 (diff) | |
download | tor-d7089ff228227259137b5a8bc32d0764a0ad4155.tar.gz tor-d7089ff228227259137b5a8bc32d0764a0ad4155.zip |
Restore the entry/dirguard distinction.
We shouldn't be calling choose_random_entry() for directory
conncetions; that's what choose_random_dirguard() is for.
Diffstat (limited to 'src/or/entrynodes.h')
-rw-r--r-- | src/or/entrynodes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/entrynodes.h b/src/or/entrynodes.h index 235ef4bfd1..e774a61a4f 100644 --- a/src/or/entrynodes.h +++ b/src/or/entrynodes.h @@ -78,8 +78,7 @@ int entry_guard_register_connect_status(const char *digest, int succeeded, int mark_relay_status, time_t now); void entry_nodes_should_be_added(void); int entry_list_is_constrained(const or_options_t *options); -const node_t *choose_random_entry(cpath_build_state_t *state, - dirinfo_type_t dirinfo); +const node_t *choose_random_entry(cpath_build_state_t *state); const node_t *choose_random_dirguard(dirinfo_type_t t); int entry_guards_parse_state(or_state_t *state, int set, char **msg); void entry_guards_update_state(or_state_t *state); |