diff options
Diffstat (limited to 'src/unix.c')
-rw-r--r-- | src/unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -111,7 +111,7 @@ static int meth_receive(lua_State *L) { | |||
111 | * Just call option handler | 111 | * Just call option handler |
112 | \*-------------------------------------------------------------------------*/ | 112 | \*-------------------------------------------------------------------------*/ |
113 | static int meth_setoption(lua_State *L) { | 113 | static int meth_setoption(lua_State *L) { |
114 | p_unix unix = aux_checkgroup(L, "unix{any}", 1); | 114 | p_unix unix = (p_unix) aux_checkgroup(L, "unix{any}", 1); |
115 | return opt_meth_setoption(L, opt, &unix->sock); | 115 | return opt_meth_setoption(L, opt, &unix->sock); |
116 | } | 116 | } |
117 | 117 | ||
@@ -148,7 +148,7 @@ static int meth_accept(lua_State *L) { | |||
148 | const char *err = sock_accept(&server->sock, &sock, NULL, NULL, tm); | 148 | const char *err = sock_accept(&server->sock, &sock, NULL, NULL, tm); |
149 | /* if successful, push client socket */ | 149 | /* if successful, push client socket */ |
150 | if (!err) { | 150 | if (!err) { |
151 | p_unix clnt = lua_newuserdata(L, sizeof(t_unix)); | 151 | p_unix clnt = (p_unix) lua_newuserdata(L, sizeof(t_unix)); |
152 | aux_setclass(L, "unix{client}", -1); | 152 | aux_setclass(L, "unix{client}", -1); |
153 | /* initialize structure fields */ | 153 | /* initialize structure fields */ |
154 | sock_setnonblocking(&sock); | 154 | sock_setnonblocking(&sock); |