diff options
Diffstat (limited to 'src/udp.c')
-rw-r--r-- | src/udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -44,7 +44,7 @@ static int meth_setfd(lua_State *L); | |||
44 | static int meth_dirty(lua_State *L); | 44 | static int meth_dirty(lua_State *L); |
45 | 45 | ||
46 | /* udp object methods */ | 46 | /* udp object methods */ |
47 | static luaL_reg udp[] = { | 47 | static 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[] = { | |||
98 | int udp_open(lua_State *L) | 98 | int 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}"); |