From 1d44ac9acd6264141615b5fce6d537544dc6f52e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 26 Apr 2019 10:36:49 -0400 Subject: Make nodelist_get_list() return a const pointer. --- src/feature/nodelist/routerset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/feature/nodelist/routerset.c') diff --git a/src/feature/nodelist/routerset.c b/src/feature/nodelist/routerset.c index 55e2756959..e801fd81b1 100644 --- a/src/feature/nodelist/routerset.c +++ b/src/feature/nodelist/routerset.c @@ -378,7 +378,7 @@ routerset_get_all_nodes(smartlist_t *out, const routerset_t *routerset, } else { /* We need to iterate over the routerlist to get all the ones of the * right kind. */ - smartlist_t *nodes = nodelist_get_list(); + const smartlist_t *nodes = nodelist_get_list(); SMARTLIST_FOREACH(nodes, const node_t *, node, { if (running_only && !node->is_running) continue; -- cgit v1.2.3-54-g00ecf