]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
dirauth: Update disabled dirvote_add_vote()
authorteor <teor@torproject.org>
Tue, 18 Feb 2020 03:21:49 +0000 (13:21 +1000)
committerteor <teor@torproject.org>
Tue, 18 Feb 2020 03:23:33 +0000 (13:23 +1000)
Update the function that handles directory authority votes when the
dirauth module is disabled.

Part of 4631.

src/feature/dirauth/dirvote.h

index b5e34a9c24a592bf52751b6216a6151906d9df80..f2dbee20e58c29efe3f1f0a26a292e6800633452 100644 (file)
@@ -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();