aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/udp.c')
-rw-r--r--src/udp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udp.c b/src/udp.c
index e3c86e7..0f9b7cc 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -44,7 +44,7 @@ static int meth_setfd(lua_State *L);
44static int meth_dirty(lua_State *L); 44static int meth_dirty(lua_State *L);
45 45
46/* udp object methods */ 46/* udp object methods */
47static luaL_reg udp[] = { 47static luaL_reg udp_methods[] = {
48 {"__gc", meth_close}, 48 {"__gc", meth_close},
49 {"__tostring", auxiliar_tostring}, 49 {"__tostring", auxiliar_tostring},
50 {"close", meth_close}, 50 {"close", meth_close},
@@ -98,8 +98,8 @@ static luaL_reg func[] = {
98int udp_open(lua_State *L) 98int udp_open(lua_State *L)
99{ 99{
100 /* create classes */ 100 /* create classes */
101 auxiliar_newclass(L, "udp{connected}", udp); 101 auxiliar_newclass(L, "udp{connected}", udp_methods);
102 auxiliar_newclass(L, "udp{unconnected}", udp); 102 auxiliar_newclass(L, "udp{unconnected}", udp_methods);
103 /* create class groups */ 103 /* create class groups */
104 auxiliar_add2group(L, "udp{connected}", "udp{any}"); 104 auxiliar_add2group(L, "udp{connected}", "udp{any}");
105 auxiliar_add2group(L, "udp{unconnected}", "udp{any}"); 105 auxiliar_add2group(L, "udp{unconnected}", "udp{any}");