aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/nodelist.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-04-26 10:36:49 -0400
committerNick Mathewson <nickm@torproject.org>2019-04-26 10:36:49 -0400
commit1d44ac9acd6264141615b5fce6d537544dc6f52e (patch)
treed945147e0593271bcc77a34f048c937cb3087b9b /src/feature/nodelist/nodelist.h
parentefeb101b968fe6604ff97604afe527a36b94cfc9 (diff)
downloadtor-1d44ac9acd6264141615b5fce6d537544dc6f52e.tar.gz
tor-1d44ac9acd6264141615b5fce6d537544dc6f52e.zip
Make nodelist_get_list() return a const pointer.
Diffstat (limited to 'src/feature/nodelist/nodelist.h')
-rw-r--r--src/feature/nodelist/nodelist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/nodelist/nodelist.h b/src/feature/nodelist/nodelist.h
index a3d65347a8..84ab5f7a54 100644
--- a/src/feature/nodelist/nodelist.h
+++ b/src/feature/nodelist/nodelist.h
@@ -101,7 +101,7 @@ const struct curve25519_public_key_t *node_get_curve25519_onion_key(
const node_t *node);
crypto_pk_t *node_get_rsa_onion_key(const node_t *node);
-MOCK_DECL(smartlist_t *, nodelist_get_list, (void));
+MOCK_DECL(const smartlist_t *, nodelist_get_list, (void));
/* Temporary during transition to multiple addresses. */
void node_get_addr(const node_t *node, tor_addr_t *addr_out);