aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirauth/dirvote.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-26 17:42:43 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-01 10:52:16 -0400
commit9870497f9df909c6a48a6f6c1e82171e99aa33a4 (patch)
tree457406679925e826c61acb7b4857ce21323cbcb5 /src/or/dirauth/dirvote.h
parent4f184415cc462214427627df0edfa897e555d5e8 (diff)
downloadtor-9870497f9df909c6a48a6f6c1e82171e99aa33a4.tar.gz
tor-9870497f9df909c6a48a6f6c1e82171e99aa33a4.zip
Update dirvote_act() to return the time of its next action.
This is remarkably simple, given the macros in the last commit.
Diffstat (limited to 'src/or/dirauth/dirvote.h')
-rw-r--r--src/or/dirauth/dirvote.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/dirauth/dirvote.h b/src/or/dirauth/dirvote.h
index f69e872c8e..7294962925 100644
--- a/src/or/dirauth/dirvote.h
+++ b/src/or/dirauth/dirvote.h
@@ -96,7 +96,7 @@
*/
#ifdef HAVE_MODULE_DIRAUTH
-void 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_parse_sr_commits(networkstatus_t *ns, smartlist_t *tokens);
@@ -114,11 +114,12 @@ int dirvote_add_signatures(const char *detached_signatures_body,
#else /* HAVE_MODULE_DIRAUTH */
-static inline void
+static inline time_t
dirvote_act(const or_options_t *options, time_t now)
{
(void) options;
(void) now;
+ return TIME_MAX;
}
static inline void