diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-04-26 10:36:49 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-04-26 10:36:49 -0400 |
commit | 1d44ac9acd6264141615b5fce6d537544dc6f52e (patch) | |
tree | d945147e0593271bcc77a34f048c937cb3087b9b /src/test/test_routerset.c | |
parent | efeb101b968fe6604ff97604afe527a36b94cfc9 (diff) | |
download | tor-1d44ac9acd6264141615b5fce6d537544dc6f52e.tar.gz tor-1d44ac9acd6264141615b5fce6d537544dc6f52e.zip |
Make nodelist_get_list() return a const pointer.
Diffstat (limited to 'src/test/test_routerset.c')
-rw-r--r-- | src/test/test_routerset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/test_routerset.c b/src/test/test_routerset.c index c45f0e1595..cc73e6c20a 100644 --- a/src/test/test_routerset.c +++ b/src/test/test_routerset.c @@ -1765,7 +1765,7 @@ NS(node_get_by_nickname)(const char *nickname, unsigned flags) * Structural test for routerset_get_all_nodes, when the nodelist has no nodes. */ -NS_DECL(smartlist_t *, nodelist_get_list, (void)); +NS_DECL(const smartlist_t *, nodelist_get_list, (void)); static smartlist_t *NS(mock_smartlist); @@ -1795,7 +1795,7 @@ NS(test_main)(void *arg) ; } -smartlist_t * +const smartlist_t * NS(nodelist_get_list)(void) { CALLED(nodelist_get_list)++; @@ -1811,7 +1811,7 @@ NS(nodelist_get_list)(void) * the running_only flag is set, but the nodes are not running. */ -NS_DECL(smartlist_t *, nodelist_get_list, (void)); +NS_DECL(const smartlist_t *, nodelist_get_list, (void)); static smartlist_t *NS(mock_smartlist); static node_t NS(mock_node); @@ -1844,7 +1844,7 @@ NS(test_main)(void *arg) ; } -smartlist_t * +const smartlist_t * NS(nodelist_get_list)(void) { CALLED(nodelist_get_list)++; |