summaryrefslogtreecommitdiff
path: root/src/or/dirauth/dirvote.h
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2018-05-01 11:35:26 -0400
committerDavid Goulet <dgoulet@torproject.org>2018-05-01 11:45:34 -0400
commit2b6c13267fd17a8705737287209a3c3e886c262b (patch)
tree50124620feab89f3944c1cfc518011cbc7d1d0b2 /src/or/dirauth/dirvote.h
parent5db331e8fccd1bf365b8e300f940eb1dd85072f9 (diff)
downloadtor-2b6c13267fd17a8705737287209a3c3e886c262b.tar.gz
tor-2b6c13267fd17a8705737287209a3c3e886c262b.zip
dirvote: Make tokens a const in dirvote_parse_sr_commits()
Part of #25988 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/dirauth/dirvote.h')
-rw-r--r--src/or/dirauth/dirvote.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/dirauth/dirvote.h b/src/or/dirauth/dirvote.h
index 228121268f..b69bbbf5d9 100644
--- a/src/or/dirauth/dirvote.h
+++ b/src/or/dirauth/dirvote.h
@@ -99,7 +99,7 @@
time_t dirvote_act(const or_options_t *options, time_t now);
void dirvote_free_all(void);
-void dirvote_parse_sr_commits(networkstatus_t *ns, smartlist_t *tokens);
+void dirvote_parse_sr_commits(networkstatus_t *ns, const smartlist_t *tokens);
void dirvote_clear_commits(networkstatus_t *ns);
void dirvote_dirreq_get_status_vote(const char *url, smartlist_t *items,
smartlist_t *dir_items);
@@ -128,7 +128,7 @@ dirvote_free_all(void)
}
static inline void
-dirvote_parse_sr_commits(networkstatus_t *ns, smartlist_t *tokens)
+dirvote_parse_sr_commits(networkstatus_t *ns, const smartlist_t *tokens)
{
(void) ns;
(void) tokens;