diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-02-10 23:01:52 +0000 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-02-10 23:01:52 +0000 |
commit | 89334a040d6496191e3cee1d69ecd3c0e566583a (patch) | |
tree | fef1b14a2adbe0b1e54eb90dd5f19343492134e5 /src/or/directory.c | |
parent | a0ee5777b091b6af55615f3bcf5f518fc8e2d2a7 (diff) | |
download | tor-89334a040d6496191e3cee1d69ecd3c0e566583a.tar.gz tor-89334a040d6496191e3cee1d69ecd3c0e566583a.zip |
Remove unused variable in directory_command_should_use_begindir()
This patch removes the unused router_purpose variable in
directory_command_should_use_begindir().
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 36714bc110..4ef39af1dd 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1078,11 +1078,10 @@ directory_must_use_begindir(const or_options_t *options) static int directory_command_should_use_begindir(const or_options_t *options, const tor_addr_t *addr, - int or_port, uint8_t router_purpose, + int or_port, dir_indirection_t indirection, const char **reason) { - (void) router_purpose; tor_assert(reason); *reason = NULL; @@ -1190,8 +1189,7 @@ directory_initiate_command_rend(const tor_addr_port_t *or_addr_port, * send our directory request)? */ const int use_begindir = directory_command_should_use_begindir(options, &or_addr_port->addr, or_addr_port->port, - router_purpose, indirection, - &begindir_reason); + indirection, &begindir_reason); /* Will the connection go via a three-hop Tor circuit? Note that this * is separate from whether it will use_begindir. */ const int anonymized_connection = dirind_is_anon(indirection); |