summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-17 11:55:25 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2013-06-17 11:55:25 +0000
commite27993bb104c43590771ff07a48b0e4f56700146 (patch)
treed752acacd034ffe777a3d01e5f3703e7e2377908 /src
parentd5c478ebe3d8c6b9fbff8a4b3002fb6cdcb5574f (diff)
- ircd.c: whitespace commit/style cleanup
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2254 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r--src/ircd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ircd.c b/src/ircd.c
index 560db37..74e9c2b 100644
--- a/src/ircd.c
+++ b/src/ircd.c
@@ -456,7 +456,7 @@ ssl_init(void)
SSL_CTX_set_options(ServerInfo.client_ctx, SSL_OP_NO_SSLv2|SSL_OP_NO_SSLv3|SSL_OP_NO_TLSv1);
SSL_CTX_set_options(ServerInfo.client_ctx, SSL_OP_TLS_ROLLBACK_BUG|SSL_OP_ALL);
- SSL_CTX_set_verify(ServerInfo.client_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE,
+ SSL_CTX_set_verify(ServerInfo.client_ctx, SSL_VERIFY_PEER|SSL_VERIFY_CLIENT_ONCE,
always_accept_verify_cb);
#endif /* HAVE_LIBCRYPTO */
}
@@ -464,9 +464,7 @@ ssl_init(void)
int
main(int argc, char *argv[])
{
- /* Check to see if the user is running
- * us as root, which is a nono
- */
+ /* Check to see if the user is running us as root, which is a nono */
if (geteuid() == 0)
{
fprintf(stderr, "Don't run ircd as root!!!\n");
@@ -483,7 +481,7 @@ main(int argc, char *argv[])
init_genrand(SystemTime.tv_sec ^ (SystemTime.tv_usec | (getpid() << 20)));
me.localClient = &meLocalUser;
- dlinkAdd(&me, &me.node, &global_client_list); /* Pointer to beginning
+ dlinkAdd(&me, &me.node, &global_client_list); /* Pointer to beginning
of Client list */
/* Initialise the channel capability usage counts... */
init_chcap_usage_counts();
@@ -527,11 +525,13 @@ main(int argc, char *argv[])
/* Init the event subsystem */
eventInit();
+
/* We need this to initialise the fd array before anything else */
fdlist_init();
log_set_file(LOG_TYPE_IRCD, 0, logFileName);
check_can_use_v6();
init_comm(); /* This needs to be setup early ! -- adrian */
+
/* Check if there is pidfile and daemon already running */
check_pidfile(pidFileName);