summaryrefslogtreecommitdiff
path: root/src/ircd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ircd.c')
-rw-r--r--src/ircd.c26
1 files changed, 6 insertions, 20 deletions
diff --git a/src/ircd.c b/src/ircd.c
index ebd43fc..7581747 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -432,7 +432,7 @@ setup_corefile(void)
* side effects - setups SSL context.
*/
static void
-init_ssl(void)
+ssl_init(void)
{
#ifdef HAVE_LIBCRYPTO
SSL_load_error_strings();
@@ -466,19 +466,6 @@ init_ssl(void)
#endif /* HAVE_LIBCRYPTO */
}
-/* init_callbacks()
- *
- * inputs - nothing
- * output - nothing
- * side effects - setups standard hook points
- */
-static void
-init_callbacks(void)
-{
- iorecv_cb = register_callback("iorecv", iorecv_default);
- iosend_cb = register_callback("iosend", iosend_default);
-}
-
int
main(int argc, char *argv[])
{
@@ -531,7 +518,7 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- init_ssl();
+ ssl_init();
if (!server_state.foreground)
{
@@ -555,24 +542,23 @@ main(int argc, char *argv[])
mp_pool_init();
init_dlink_nodes();
- init_callbacks();
initialize_message_files();
dbuf_init();
- init_hash();
+ hash_init();
init_ip_hash_table(); /* client host ip hash table */
init_host_hash(); /* Host-hashtable. */
- init_client();
+ client_init();
class_init();
whowas_init();
watch_init();
- init_auth(); /* Initialise the auth code */
+ auth_init(); /* Initialise the auth code */
init_resolver(); /* Needs to be setup before the io loop */
modules_init();
read_conf_files(1); /* cold start init conf files */
init_uid();
initialize_server_capabs(); /* Set up default_server_capabs */
initialize_global_set_options();
- init_channels();
+ channel_init();
if (EmptyString(ServerInfo.sid))
{