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/udp.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/udp.c')
-rw-r--r-- | src/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ static int meth_setfd(lua_State *L); | |||
45 | static int meth_dirty(lua_State *L); | 45 | static int meth_dirty(lua_State *L); |
46 | 46 | ||
47 | /* udp object methods */ | 47 | /* udp object methods */ |
48 | static luaL_reg udp_methods[] = { | 48 | static luaL_Reg udp_methods[] = { |
49 | {"__gc", meth_close}, | 49 | {"__gc", meth_close}, |
50 | {"__tostring", auxiliar_tostring}, | 50 | {"__tostring", auxiliar_tostring}, |
51 | {"close", meth_close}, | 51 | {"close", meth_close}, |
@@ -89,7 +89,7 @@ static t_opt optget[] = { | |||
89 | }; | 89 | }; |
90 | 90 | ||
91 | /* functions in library namespace */ | 91 | /* functions in library namespace */ |
92 | static luaL_reg func[] = { | 92 | static luaL_Reg func[] = { |
93 | {"udp", global_create}, | 93 | {"udp", global_create}, |
94 | {"udp6", global_create6}, | 94 | {"udp6", global_create6}, |
95 | {NULL, NULL} | 95 | {NULL, NULL} |