fix irc_dictionary, and some ircd warnings
This commit is contained in:
parent
c608a0619b
commit
90728508bb
2 changed files with 2 additions and 3 deletions
|
@ -62,7 +62,7 @@ struct Dictionary *irc_dictionary_create(DCF compare_cb)
|
||||||
dtree->compare_cb = compare_cb;
|
dtree->compare_cb = compare_cb;
|
||||||
|
|
||||||
if (!elem_heap)
|
if (!elem_heap)
|
||||||
elem_heap = rb_bh_create(sizeof(struct DictionaryElement), 1024);
|
elem_heap = rb_bh_create(sizeof(struct DictionaryElement), 1024, "dictionary_elem_heap");
|
||||||
|
|
||||||
return dtree;
|
return dtree;
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ struct Dictionary *irc_dictionary_create_named(const char *name,
|
||||||
dtree->id = rb_strdup(name);
|
dtree->id = rb_strdup(name);
|
||||||
|
|
||||||
if (!elem_heap)
|
if (!elem_heap)
|
||||||
elem_heap = rb_bh_create(sizeof(struct DictionaryElement), 1024);
|
elem_heap = rb_bh_create(sizeof(struct DictionaryElement), 1024, "dictionary_elem_heap");
|
||||||
|
|
||||||
return dtree;
|
return dtree;
|
||||||
}
|
}
|
||||||
|
|
|
@ -558,7 +558,6 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
/* Init the event subsystem */
|
/* Init the event subsystem */
|
||||||
init_sys();
|
init_sys();
|
||||||
libcharybdis_init(ircd_log_cb, restart, ircd_die_cb);
|
|
||||||
rb_lib_init(ircd_log_cb, restart, ircd_die_cb, !server_state_foreground, maxconnections, DNODE_HEAP_SIZE, FD_HEAP_SIZE);
|
rb_lib_init(ircd_log_cb, restart, ircd_die_cb, !server_state_foreground, maxconnections, DNODE_HEAP_SIZE, FD_HEAP_SIZE);
|
||||||
|
|
||||||
init_main_logfile();
|
init_main_logfile();
|
||||||
|
|
Loading…
Reference in a new issue