aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/nodelist.h
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/feature/nodelist/nodelist.h
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/feature/nodelist/nodelist.h')
-rw-r--r--src/feature/nodelist/nodelist.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/feature/nodelist/nodelist.h b/src/feature/nodelist/nodelist.h
index 4ba699d69d..826d1b957a 100644
--- a/src/feature/nodelist/nodelist.h
+++ b/src/feature/nodelist/nodelist.h
@@ -32,8 +32,8 @@ const node_t *node_get_by_hex_id(const char *identity_digest,
unsigned flags);
node_t *nodelist_set_routerinfo(routerinfo_t *ri, routerinfo_t **ri_old_out);
node_t *nodelist_add_microdesc(microdesc_t *md);
-void nodelist_set_consensus(networkstatus_t *ns);
-void nodelist_ensure_freshness(networkstatus_t *ns);
+void nodelist_set_consensus(const networkstatus_t *ns);
+void nodelist_ensure_freshness(const networkstatus_t *ns);
int nodelist_probably_contains_address(const tor_addr_t *addr);
void nodelist_add_addr4_to_address_set(const uint32_t addr);
void nodelist_add_addr6_to_address_set(const tor_addr_t *addr);