str_map::key_cmp -> str_map::key_xfrm

It seemed to be almost too easy to be true, and it actually was.

Now it should work.
This commit is contained in:
2014-07-16 21:23:30 +02:00
parent 996e0912c2
commit d28b722489
2 changed files with 45 additions and 13 deletions

View File

@@ -378,12 +378,12 @@ server_context_init (struct server_context *self)
self->server_name = NULL;
str_map_init (&self->users);
self->users.key_cmp = irc_strcmp;
self->users.key_xfrm = irc_strxfrm;
// TODO: set channel_free() as the free function?
str_map_init (&self->channels);
self->channels.key_cmp = irc_strcmp;
self->channels.key_xfrm = irc_strxfrm;
str_map_init (&self->handlers);
self->handlers.key_cmp = irc_strcmp;
self->handlers.key_xfrm = irc_strxfrm;
poller_init (&self->poller);
self->quitting = false;