fix irc_dictionary, and some ircd warnings

This commit is contained in:
William Pitcock 2008-04-01 20:01:25 -05:00
parent dd9be678f1
commit 075423b056
2 changed files with 2 additions and 3 deletions

View File

@ -62,7 +62,7 @@ struct Dictionary *irc_dictionary_create(DCF compare_cb)
dtree->compare_cb = compare_cb;
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;
}
@ -93,7 +93,7 @@ struct Dictionary *irc_dictionary_create_named(const char *name,
dtree->id = rb_strdup(name);
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;
}

View File

@ -558,7 +558,6 @@ main(int argc, char *argv[])
/* Init the event subsystem */
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);
init_main_logfile();