aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
authorLiam Devine <dmail00@gmail.com>2011-07-04 23:31:14 +0100
committerSam Roberts <vieuxtech@gmail.com>2012-04-11 13:33:34 -0700
commite15ed19db6eb3385c1b35219c2dfa11953c3d47e (patch)
tree4e38a0b05ac7cbaaa449f2b32dc959409ceae9ea /src/udp.c
parenta984607f28d0a802acaf1a16da225234af769baa (diff)
downloadluasocket-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udp.c b/src/udp.c
index cc04fc8..13007fb 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -45,7 +45,7 @@ static int meth_setfd(lua_State *L);
45static int meth_dirty(lua_State *L); 45static int meth_dirty(lua_State *L);
46 46
47/* udp object methods */ 47/* udp object methods */
48static luaL_reg udp_methods[] = { 48static 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 */
92static luaL_reg func[] = { 92static 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}