diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-06-24 14:28:43 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-06-24 15:25:07 -0400 |
commit | 93ccb3294bd2af4587d11e7306422a9aef83013c (patch) | |
tree | 66499dde041cdd09aea722d2df79b0c06b71d881 /src/feature/nodelist/nodelist.c | |
parent | 86da0cfd36f82d1d8a0948a3587aef0f518c7a66 (diff) | |
download | tor-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/feature/nodelist/nodelist.c')
-rw-r--r-- | src/feature/nodelist/nodelist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c index 6b2c0d2016..dd6c65661a 100644 --- a/src/feature/nodelist/nodelist.c +++ b/src/feature/nodelist/nodelist.c @@ -621,7 +621,7 @@ get_estimated_address_per_node, (void)) * and grab microdescriptors into nodes as appropriate. */ void -nodelist_set_consensus(networkstatus_t *ns) +nodelist_set_consensus(const networkstatus_t *ns) { const or_options_t *options = get_options(); int authdir = authdir_mode_v3(options); @@ -952,7 +952,7 @@ nodelist_assert_ok(void) /** Ensure that the nodelist has been created with the most recent consensus. * If that's not the case, make it so. */ void -nodelist_ensure_freshness(networkstatus_t *ns) +nodelist_ensure_freshness(const networkstatus_t *ns) { tor_assert(ns); |