From 9327615448168c9e2ea6a2bf05e6f83c91d8e033 Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Mon, 5 Sep 2011 23:16:15 +0200 Subject: [PATCH] Compile warning fix. --- src/network/backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/backend.c b/src/network/backend.c index d4f39c3..f0c813d 100644 --- a/src/network/backend.c +++ b/src/network/backend.c @@ -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);