From 93ccb3294bd2af4587d11e7306422a9aef83013c Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 24 Jun 2020 14:28:43 -0400 Subject: 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. --- src/feature/nodelist/nodelist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/feature/nodelist/nodelist.h') 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); -- cgit v1.2.3-54-g00ecf