summaryrefslogtreecommitdiff
path: root/src/lib/err
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-09 11:12:12 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-09 11:12:12 -0500
commitc6336727cac937b4b5ca38c9b49ed3a66ce0b579 (patch)
tree8735c6509412adbb1e8a2909cd95577e78b18074 /src/lib/err
parente80595f562e199049a41fdf1f3e12baced7e74d5 (diff)
downloadtor-c6336727cac937b4b5ca38c9b49ed3a66ce0b579.tar.gz
tor-c6336727cac937b4b5ca38c9b49ed3a66ce0b579.zip
Rename subsystem callback functions to make them consistent
Diffstat (limited to 'src/lib/err')
-rw-r--r--src/lib/err/torerr_sys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/err/torerr_sys.c b/src/lib/err/torerr_sys.c
index 2f9e33e233..96bb1308a4 100644
--- a/src/lib/err/torerr_sys.c
+++ b/src/lib/err/torerr_sys.c
@@ -16,7 +16,7 @@
#include <stddef.h>
static int
-torerr_subsys_init(void)
+subsys_torerr_initialize(void)
{
if (configure_backtrace_handler(get_version()) < 0)
return -1;
@@ -25,7 +25,7 @@ torerr_subsys_init(void)
return 0;
}
static void
-torerr_subsys_shutdown(void)
+subsys_torerr_shutdown(void)
{
tor_log_reset_sigsafe_err_fds();
clean_up_backtrace_handler();
@@ -35,6 +35,6 @@ const subsys_fns_t sys_torerr = {
.name = "err",
.level = -100,
.supported = true,
- .initialize = torerr_subsys_init,
- .shutdown = torerr_subsys_shutdown
+ .initialize = subsys_torerr_initialize,
+ .shutdown = subsys_torerr_shutdown
};