Compile warning fix.

This commit is contained in:
Jan Vidar Krey 2011-09-05 23:16:15 +02:00
parent 3bc764adf5
commit 9327615448
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ static net_backend_init_t net_backend_init_funcs[] = {
int net_backend_init() int net_backend_init()
{ {
size_t n; 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.num = 0;
g_backend->common.max = net_get_max_sockets(); g_backend->common.max = net_get_max_sockets();
g_backend->now = time(0); g_backend->now = time(0);