summaryrefslogtreecommitdiff
path: root/src/feature/dirauth
diff options
context:
space:
mode:
Diffstat (limited to 'src/feature/dirauth')
-rw-r--r--src/feature/dirauth/dirauth_periodic.c12
-rw-r--r--src/feature/dirauth/dirauth_periodic.h2
-rw-r--r--src/feature/dirauth/dirauth_sys.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/feature/dirauth/dirauth_periodic.c b/src/feature/dirauth/dirauth_periodic.c
index 1fa0ca9cfa..cfbb156b9f 100644
--- a/src/feature/dirauth/dirauth_periodic.c
+++ b/src/feature/dirauth/dirauth_periodic.c
@@ -132,11 +132,11 @@ downrate_stability_callback(time_t now, const or_options_t *options)
DECLARE_EVENT(downrate_stability, AUTHORITIES, 0);
void
-dirauth_add_periodic_events(void)
+dirauth_register_periodic_events(void)
{
- periodic_events_add(&downrate_stability_event);
- periodic_events_add(&launch_reachability_tests_event);
- periodic_events_add(&save_stability_event);
- periodic_events_add(&check_authority_cert_event);
- periodic_events_add(&dirvote_event);
+ periodic_events_register(&downrate_stability_event);
+ periodic_events_register(&launch_reachability_tests_event);
+ periodic_events_register(&save_stability_event);
+ periodic_events_register(&check_authority_cert_event);
+ periodic_events_register(&dirvote_event);
}
diff --git a/src/feature/dirauth/dirauth_periodic.h b/src/feature/dirauth/dirauth_periodic.h
index 680c0c4bed..de14cbb3c8 100644
--- a/src/feature/dirauth/dirauth_periodic.h
+++ b/src/feature/dirauth/dirauth_periodic.h
@@ -9,7 +9,7 @@
#ifdef HAVE_MODULE_DIRAUTH
-void dirauth_add_periodic_events(void);
+void dirauth_register_periodic_events(void);
void reschedule_dirvote(const or_options_t *options);
#else
diff --git a/src/feature/dirauth/dirauth_sys.c b/src/feature/dirauth/dirauth_sys.c
index 6845e62c27..bb482f2685 100644
--- a/src/feature/dirauth/dirauth_sys.c
+++ b/src/feature/dirauth/dirauth_sys.c
@@ -14,7 +14,7 @@
static int
subsys_dirauth_initialize(void)
{
- dirauth_add_periodic_events();
+ dirauth_register_periodic_events();
return 0;
}