aboutsummaryrefslogtreecommitdiff
path: root/src/or/parsecommon.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-05-01 11:33:40 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-05-01 11:45:34 -0400
commit5db331e8fccd1bf365b8e300f940eb1dd85072f9 (patch)
treea85cb319fee28636bcabff7d02f55a3c0007460a /src/or/parsecommon.c
parent70c92c336661a164e3905be157aa8a16de77462a (diff)
downloadtor-5db331e8fccd1bf365b8e300f940eb1dd85072f9.tar.gz
tor-5db331e8fccd1bf365b8e300f940eb1dd85072f9.zip
Make find_opt_by_keyword() take a const smartlist
Part of #25988 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/parsecommon.c')
-rw-r--r--src/or/parsecommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/parsecommon.c b/src/or/parsecommon.c
index 6c3dd3100e..9bd00e17ce 100644
--- a/src/or/parsecommon.c
+++ b/src/or/parsecommon.c
@@ -426,7 +426,7 @@ find_by_keyword_(smartlist_t *s, directory_keyword keyword,
* NULL if no such keyword is found.
*/
directory_token_t *
-find_opt_by_keyword(smartlist_t *s, directory_keyword keyword)
+find_opt_by_keyword(const smartlist_t *s, directory_keyword keyword)
{
SMARTLIST_FOREACH(s, directory_token_t *, t, if (t->tp == keyword) return t);
return NULL;