some fixes for previous commit
[NeonServV5.git] / src / main.c
index 22ced25ddeb0a5097a5edeb9d8485d49e73e1cc0..d585ada9e62872c3325a0f75219c8dc1554704de 100644 (file)
 #include "IRCQueue.h"
 #include "DBHelper.h"
 #include "ConfigParser.h"
-#include "ssl.h"
 #include "QServer.h"
 #include "version.h"
 #include "modules.h"
 #include "module_commands.h"
 #include "ModuleFunctions.h"
+#include "IOHandler.h"
 
 time_t start_time;
 static int running, hard_restart;
@@ -116,7 +116,6 @@ static TIMEQ_CALLBACK(clear_cache) {
 }
 
 void *thread_main(void *arg) {
-    time_t socket_wait;
     while(running) {
         iohandler_poll();
     }
@@ -300,7 +299,7 @@ main:
         pthread_create(&current_threads[tid_id], NULL, thread_main, NULL);
     }
     #endif
-    thread_main();
+    thread_main(NULL);
     #ifdef HAVE_THREADS
     for(tid_id = 0; tid_id < worker_threads; tid_id++) {
         pthread_join(current_threads[tid_id], NULL);