Compile warning fix.

This commit is contained in:
Jan Vidar Krey 2011-09-05 23:16:15 +02:00
parent 3bc764adf5
commit 9327615448

View File

@ -72,7 +72,7 @@ static net_backend_init_t net_backend_init_funcs[] = {
int net_backend_init()
{
size_t n;
g_backend = hub_malloc_zero(sizeof(struct net_backend));
g_backend = (struct net_backend*) hub_malloc_zero(sizeof(struct net_backend));
g_backend->common.num = 0;
g_backend->common.max = net_get_max_sockets();
g_backend->now = time(0);