diff options
author | Liam Devine <dmail00@gmail.com> | 2011-07-04 23:31:14 +0100 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:33:34 -0700 |
commit | e15ed19db6eb3385c1b35219c2dfa11953c3d47e (patch) | |
tree | 4e38a0b05ac7cbaaa449f2b32dc959409ceae9ea /src/tcp.c | |
parent | a984607f28d0a802acaf1a16da225234af769baa (diff) | |
download | luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.gz luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.bz2 luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.zip |
Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs sorting out to take maybe a version number and also the local paths need removing.
Diffstat (limited to 'src/tcp.c')
-rw-r--r-- | src/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -40,7 +40,7 @@ static int meth_setfd(lua_State *L); | |||
40 | static int meth_dirty(lua_State *L); | 40 | static int meth_dirty(lua_State *L); |
41 | 41 | ||
42 | /* tcp object methods */ | 42 | /* tcp object methods */ |
43 | static luaL_reg tcp_methods[] = { | 43 | static luaL_Reg tcp_methods[] = { |
44 | {"__gc", meth_close}, | 44 | {"__gc", meth_close}, |
45 | {"__tostring", auxiliar_tostring}, | 45 | {"__tostring", auxiliar_tostring}, |
46 | {"accept", meth_accept}, | 46 | {"accept", meth_accept}, |
@@ -76,7 +76,7 @@ static t_opt optset[] = { | |||
76 | }; | 76 | }; |
77 | 77 | ||
78 | /* functions in library namespace */ | 78 | /* functions in library namespace */ |
79 | static luaL_reg func[] = { | 79 | static luaL_Reg func[] = { |
80 | {"tcp", global_create}, | 80 | {"tcp", global_create}, |
81 | {"tcp6", global_create6}, | 81 | {"tcp6", global_create6}, |
82 | {"connect6", global_connect6}, | 82 | {"connect6", global_connect6}, |