Fixed various code deprecations

Signed-off-by: Jan Vidar Krey <janvidar@extatic.org>
This commit is contained in:
Jan Vidar Krey
2009-05-15 18:45:26 +02:00
parent 6cc1af5671
commit 604364ffa5
13 changed files with 280 additions and 229 deletions

View File

@@ -42,7 +42,8 @@ void net_on_read(int fd, short ev, void *arg)
}
else
{
hub_send_ping(user);
// FIXME: hub is not neccesarily set!
// hub_send_ping(hub, user);
}
}
@@ -85,7 +86,8 @@ void net_on_read(int fd, short ev, void *arg)
{
if (msglen < user->hub->config->max_recv_buffer)
{
if (hub_handle_message(user, &buf[handled], msglen) == -1)
// FIXME: hub is not set????
if (hub_handle_message(user->hub, user, &buf[handled], msglen) == -1)
{
flag_close = quit_protocol_error;
more = 0;