From 197aef23ce36844e86e732f26af1df9fc5f149da Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Thu, 1 Jul 2004 05:35:35 +0000 Subject: Compiles with g++. --- src/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unix.c') diff --git a/src/unix.c b/src/unix.c index 34d2da1..407f85d 100644 --- a/src/unix.c +++ b/src/unix.c @@ -111,7 +111,7 @@ static int meth_receive(lua_State *L) { * Just call option handler \*-------------------------------------------------------------------------*/ static int meth_setoption(lua_State *L) { - p_unix unix = aux_checkgroup(L, "unix{any}", 1); + p_unix unix = (p_unix) aux_checkgroup(L, "unix{any}", 1); return opt_meth_setoption(L, opt, &unix->sock); } @@ -148,7 +148,7 @@ static int meth_accept(lua_State *L) { const char *err = sock_accept(&server->sock, &sock, NULL, NULL, tm); /* if successful, push client socket */ if (!err) { - p_unix clnt = lua_newuserdata(L, sizeof(t_unix)); + p_unix clnt = (p_unix) lua_newuserdata(L, sizeof(t_unix)); aux_setclass(L, "unix{client}", -1); /* initialize structure fields */ sock_setnonblocking(&sock); -- cgit v1.2.3-55-g6feb