static pthread_t *current_threads = NULL;
#endif
-static void main_tread(void *empty);
+static void *main_tread(void *empty);
static TIMEQ_CALLBACK(clear_cache);
static TIMEQ_CALLBACK(main_checkauths);
static void check_firstrun();
/* MAIN FUNCTION(S) */
-static void main_tread(void *empty) {
+static void *main_tread(void *empty) {
while(process_state.running) {
iohandler_poll();
}
+ return NULL;
}
static void main_restart_process() {
//load configuration
int errid;
- if(errid = reload_configuration()) {
+ if((errid = reload_configuration())) {
fprintf(stderr, "Unable to load configuration file `%s`. (errid: %d)\n", process_state.config, errid);
exit(0);
}