mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
dirvote: Make tokens a const in dirvote_parse_sr_commits()
Part of #25988 Signed-off-by: David Goulet <dgoulet@torproject.org>
This commit is contained in:
parent
5db331e8fc
commit
2b6c13267f
@ -3892,7 +3892,7 @@ dirvote_format_all_microdesc_vote_lines(const routerinfo_t *ri, time_t now,
|
|||||||
/** Parse and extract all SR commits from <b>tokens</b> and place them in
|
/** Parse and extract all SR commits from <b>tokens</b> and place them in
|
||||||
* <b>ns</b>. */
|
* <b>ns</b>. */
|
||||||
static void
|
static void
|
||||||
extract_shared_random_commits(networkstatus_t *ns, smartlist_t *tokens)
|
extract_shared_random_commits(networkstatus_t *ns, const smartlist_t *tokens)
|
||||||
{
|
{
|
||||||
smartlist_t *chunks = NULL;
|
smartlist_t *chunks = NULL;
|
||||||
|
|
||||||
@ -3948,7 +3948,7 @@ extract_shared_random_commits(networkstatus_t *ns, smartlist_t *tokens)
|
|||||||
*
|
*
|
||||||
* This also sets the SR participation flag if present in the vote. */
|
* This also sets the SR participation flag if present in the vote. */
|
||||||
void
|
void
|
||||||
dirvote_parse_sr_commits(networkstatus_t *ns, smartlist_t *tokens)
|
dirvote_parse_sr_commits(networkstatus_t *ns, const smartlist_t *tokens)
|
||||||
{
|
{
|
||||||
/* Does this authority participates in the SR protocol? */
|
/* Does this authority participates in the SR protocol? */
|
||||||
directory_token_t *tok = find_opt_by_keyword(tokens, K_SR_FLAG);
|
directory_token_t *tok = find_opt_by_keyword(tokens, K_SR_FLAG);
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
time_t dirvote_act(const or_options_t *options, time_t now);
|
time_t dirvote_act(const or_options_t *options, time_t now);
|
||||||
void dirvote_free_all(void);
|
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_clear_commits(networkstatus_t *ns);
|
||||||
void dirvote_dirreq_get_status_vote(const char *url, smartlist_t *items,
|
void dirvote_dirreq_get_status_vote(const char *url, smartlist_t *items,
|
||||||
smartlist_t *dir_items);
|
smartlist_t *dir_items);
|
||||||
@ -128,7 +128,7 @@ dirvote_free_all(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline 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) ns;
|
||||||
(void) tokens;
|
(void) tokens;
|
||||||
|
Loading…
Reference in New Issue
Block a user