aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index 9769667..8590b96 100644
--- a/src/select.c
+++ b/src/select.c
@@ -42,7 +42,7 @@ static luaL_reg func[] = {
42/*-------------------------------------------------------------------------*\ 42/*-------------------------------------------------------------------------*\
43* Initializes module 43* Initializes module
44\*-------------------------------------------------------------------------*/ 44\*-------------------------------------------------------------------------*/
45void select_open(lua_State *L) 45int select_open(lua_State *L)
46{ 46{
47 /* get select auxiliar lua function from lua code and register 47 /* get select auxiliar lua function from lua code and register
48 * pass it as an upvalue to global_select */ 48 * pass it as an upvalue to global_select */
@@ -54,6 +54,7 @@ void select_open(lua_State *L)
54 luaL_openlib(L, LUASOCKET_LIBNAME, func, 1); 54 luaL_openlib(L, LUASOCKET_LIBNAME, func, 1);
55 lua_pop(L, 1); 55 lua_pop(L, 1);
56 aux_newclass(L, "select{fd_set}", set); 56 aux_newclass(L, "select{fd_set}", set);
57 return 0;
57} 58}
58 59
59/*=========================================================================*\ 60/*=========================================================================*\