summaryrefslogtreecommitdiff
path: root/src/or/dirvote.h
diff options
context:
space:
mode:
authorDaniel Pinto <danielpinto52@gmail.com>2016-08-16 17:53:38 +0100
committerDaniel Pinto <danielpinto52@gmail.com>2016-08-16 17:53:38 +0100
commit8c0fdf6a276077123c356f3fc9d29eebfc41db72 (patch)
tree1ac2994bf6a65d697da877847059911b97bf54aa /src/or/dirvote.h
parent5e571900b341b52a3176edaecfb6cbab8829efd1 (diff)
downloadtor-8c0fdf6a276077123c356f3fc9d29eebfc41db72.tar.gz
tor-8c0fdf6a276077123c356f3fc9d29eebfc41db72.zip
Added a voting_schedule_free function to free voting schedules.
Existing Uses of the tor_free function on voting schedules were replaced with voting_schedule_free. Fixes #19562.
Diffstat (limited to 'src/or/dirvote.h')
-rw-r--r--src/or/dirvote.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirvote.h b/src/or/dirvote.h
index 2a83802307..23084cd0a9 100644
--- a/src/or/dirvote.h
+++ b/src/or/dirvote.h
@@ -157,6 +157,8 @@ typedef struct {
voting_schedule_t *get_voting_schedule(const or_options_t *options,
time_t now, int severity);
+void free_voting_schedule(voting_schedule_t *voting_schedule_to_free);
+
void dirvote_get_preferred_voting_intervals(vote_timing_t *timing_out);
time_t dirvote_get_start_of_next_interval(time_t now,
int interval,