diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-07-16 10:26:43 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2020-07-16 12:55:06 -0400 |
commit | 7ebfa607b238ed909473bb971d1187066d68c56f (patch) | |
tree | e94ab2e53a0c19164f60e43fc53bee7e85195ab0 /src/feature/dircommon | |
parent | b3eb4091579e59e4bf311713a3bef0f85137b1b0 (diff) | |
download | tor-7ebfa607b238ed909473bb971d1187066d68c56f.tar.gz tor-7ebfa607b238ed909473bb971d1187066d68c56f.zip |
Use CONST_TO_* macros in more places.
This is an automated commit made with a python script.
After running the automated script, I had to hand-revert the cases where it
made the conversion functions call themselves.
Additionally, I had to edit a variable declaration in control_bootstrap.c so
that the result of a const cast could be put in a const field.
Diffstat (limited to 'src/feature/dircommon')
-rw-r--r-- | src/feature/dircommon/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/dircommon/directory.c b/src/feature/dircommon/directory.c index e92e6480af..b276ac3441 100644 --- a/src/feature/dircommon/directory.c +++ b/src/feature/dircommon/directory.c @@ -233,7 +233,7 @@ connection_dir_is_anonymous(const dir_connection_t *dir_conn) return false; } - edge_conn = TO_EDGE_CONN((connection_t *) linked_conn); + edge_conn = CONST_TO_EDGE_CONN(linked_conn); circ = edge_conn->on_circuit; /* Can't be a circuit we initiated and without a circuit, no channel. */ |