aboutsummaryrefslogtreecommitdiff
path: root/src/lib/net
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/net
parente80595f562e199049a41fdf1f3e12baced7e74d5 (diff)
downloadtor-c6336727cac937b4b5ca38c9b49ed3a66ce0b579.tar.gz
tor-c6336727cac937b4b5ca38c9b49ed3a66ce0b579.zip
Rename subsystem callback functions to make them consistent
Diffstat (limited to 'src/lib/net')
-rw-r--r--src/lib/net/network_sys.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/net/network_sys.c b/src/lib/net/network_sys.c
index c9d33a94d3..ac49288ee6 100644
--- a/src/lib/net/network_sys.c
+++ b/src/lib/net/network_sys.c
@@ -18,7 +18,7 @@
#endif
static int
-init_network_sys(void)
+subsys_network_initialize(void)
{
if (network_init() < 0)
return -1;
@@ -27,7 +27,7 @@ init_network_sys(void)
}
static void
-shutdown_network_sys(void)
+subsys_network_shutdown(void)
{
#ifdef _WIN32
WSACleanup();
@@ -39,6 +39,6 @@ const subsys_fns_t sys_network = {
.name = "network",
.level = -90,
.supported = true,
- .initialize = init_network_sys,
- .shutdown = shutdown_network_sys,
+ .initialize = subsys_network_initialize,
+ .shutdown = subsys_network_shutdown,
};