aboutsummaryrefslogtreecommitdiff
path: root/src/feature/dirauth/dirvote.h
diff options
context:
space:
mode:
authorteor <teor@torproject.org>2020-02-18 13:21:49 +1000
committerteor <teor@torproject.org>2020-02-18 13:23:33 +1000
commitf2987063261adea7396b660a11063f8bc1d1cbcc (patch)
tree2f46f4c0e1f8e76368377a4ef18fda12ee58d0da /src/feature/dirauth/dirvote.h
parente540a4147fcbbf17264396373697741c71e4effc (diff)
downloadtor-f2987063261adea7396b660a11063f8bc1d1cbcc.tar.gz
tor-f2987063261adea7396b660a11063f8bc1d1cbcc.zip
dirauth: Update disabled dirvote_add_vote()
Update the function that handles directory authority votes when the dirauth module is disabled. Part of 4631.
Diffstat (limited to 'src/feature/dirauth/dirvote.h')
-rw-r--r--src/feature/dirauth/dirvote.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/feature/dirauth/dirvote.h b/src/feature/dirauth/dirvote.h
index b5e34a9c24..f2dbee20e5 100644
--- a/src/feature/dirauth/dirvote.h
+++ b/src/feature/dirauth/dirvote.h
@@ -143,9 +143,13 @@ dirvote_dirreq_get_status_vote(const char *url, smartlist_t *items,
}
static inline struct pending_vote_t *
-dirvote_add_vote(const char *vote_body, const char **msg_out, int *status_out)
+dirvote_add_vote(const char *vote_body,
+ time_t time_posted,
+ const char **msg_out,
+ int *status_out)
{
(void) vote_body;
+ (void) time_posted;
/* If the dirauth module is disabled, this should NEVER be called else we
* failed to safeguard the dirauth module. */
tor_assert_nonfatal_unreached();