Fix some compile errors.

This commit is contained in:
Jan Vidar Krey
2009-12-14 13:06:52 +01:00
parent b3aa5332c8
commit f35b2c35cb
5 changed files with 42 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ struct hub_probe* probe_create(struct hub_info* hub, int sd, struct ip_addr_enca
return NULL; /* OOM */
probe->hub = hub;
probe->connection = (struct net_connection*) hub_malloc(sizeof(struct net_connection));
probe->connection = net_con_create();
net_con_initialize(probe->connection, sd, probe_net_event, probe, NET_EVENT_READ);
net_con_set_timeout(probe->connection, TIMEOUT_CONNECTED);