diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-08-21 12:10:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-08-22 10:15:56 -0400 |
commit | 775c491502e43f0490023b2917c4e1a05b38b5b8 (patch) | |
tree | fcde4b10787c0bbcf983f3811f5f4c45693aa21a /src/or/circuitbuild.c | |
parent | e1c9b43b8efbc76ab3a6decf47d6d1ef1967ef77 (diff) | |
download | tor-775c491502e43f0490023b2917c4e1a05b38b5b8.tar.gz tor-775c491502e43f0490023b2917c4e1a05b38b5b8.zip |
Separate mutable/const accessors for circuit_build_times
(These have proved invaluable for other global accessors.)
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index cb2f423ee3..a203ceeef1 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -782,14 +782,14 @@ circuit_send_next_onion_skin(origin_circuit_t *circ) /* Only count circuit times if the network is live */ if (circuit_build_times_network_check_live( get_circuit_build_times())) { - circuit_build_times_add_time(get_circuit_build_times(), + circuit_build_times_add_time(get_circuit_build_times_mutable(), (build_time_t)timediff); - circuit_build_times_set_timeout(get_circuit_build_times()); + circuit_build_times_set_timeout(get_circuit_build_times_mutable()); } if (circ->base_.purpose != CIRCUIT_PURPOSE_C_MEASURE_TIMEOUT) { circuit_build_times_network_circ_success( - get_circuit_build_times()); + get_circuit_build_times_mutable()); } } } |