aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/circuitstats.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-06-24 14:28:43 -0400
committerNick Mathewson <nickm@torproject.org>2020-06-24 15:25:07 -0400
commit93ccb3294bd2af4587d11e7306422a9aef83013c (patch)
tree66499dde041cdd09aea722d2df79b0c06b71d881 /src/core/or/circuitstats.c
parent86da0cfd36f82d1d8a0948a3587aef0f518c7a66 (diff)
downloadtor-93ccb3294bd2af4587d11e7306422a9aef83013c.tar.gz
tor-93ccb3294bd2af4587d11e7306422a9aef83013c.zip
Make a bunch of networkstatus_t parameters constant.
This is part of refactoring our "notify the rest of the code that we have a new consensus" code.
Diffstat (limited to 'src/core/or/circuitstats.c')
-rw-r--r--src/core/or/circuitstats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/or/circuitstats.c b/src/core/or/circuitstats.c
index 6a9d84df99..bc6c263798 100644
--- a/src/core/or/circuitstats.c
+++ b/src/core/or/circuitstats.c
@@ -399,7 +399,7 @@ circuit_build_times_initial_timeout(void)
* and learn a new timeout.
*/
static int32_t
-circuit_build_times_recent_circuit_count(networkstatus_t *ns)
+circuit_build_times_recent_circuit_count(const networkstatus_t *ns)
{
int32_t num;
num = networkstatus_get_param(ns, "cbtrecentcount",
@@ -425,7 +425,7 @@ circuit_build_times_recent_circuit_count(networkstatus_t *ns)
*/
void
circuit_build_times_new_consensus_params(circuit_build_times_t *cbt,
- networkstatus_t *ns)
+ const networkstatus_t *ns)
{
int32_t num;