aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_hs_common.c
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/test/test_hs_common.c
parentefeb101b968fe6604ff97604afe527a36b94cfc9 (diff)
downloadtor-1d44ac9acd6264141615b5fce6d537544dc6f52e.tar.gz
tor-1d44ac9acd6264141615b5fce6d537544dc6f52e.zip
Make nodelist_get_list() return a const pointer.
Diffstat (limited to 'src/test/test_hs_common.c')
-rw-r--r--src/test/test_hs_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c
index eb7f3bfbb0..bb41f1f870 100644
--- a/src/test/test_hs_common.c
+++ b/src/test/test_hs_common.c
@@ -275,7 +275,7 @@ test_start_time_of_next_time_period(void *arg)
static void
cleanup_nodelist(void)
{
- smartlist_t *nodelist = nodelist_get_list();
+ const smartlist_t *nodelist = nodelist_get_list();
SMARTLIST_FOREACH_BEGIN(nodelist, node_t *, node) {
tor_free(node->md);
node->md = NULL;