diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-04 14:29:11 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-02-04 14:29:11 +0000 |
commit | 0b2542d1a61fc5425ff65ab3dbf7ba7de174763f (patch) | |
tree | 8a6188e11db0c9ef6891c31e8a1bebca050b23b2 /src/select.c | |
parent | f67864f86c7d703325e86b14d0ba33992c52891b (diff) | |
download | luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.tar.gz luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.tar.bz2 luasocket-0b2542d1a61fc5425ff65ab3dbf7ba7de174763f.zip |
Worked on the manual.
Implemented stuffing (needs test)
Added cddb and qp examples.
Diffstat (limited to 'src/select.c')
-rw-r--r-- | src/select.c | 3 |
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 | \*-------------------------------------------------------------------------*/ |
45 | void select_open(lua_State *L) | 45 | int 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 | /*=========================================================================*\ |