diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-04-13 22:18:21 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-04-13 22:18:21 +0000 |
commit | 5e75dc0857625fb9061660e07732e0f833e4a125 (patch) | |
tree | 96e7e17a3ae29addb3e6f7664ee4d210de93b786 /src/udp.c | |
parent | e7b7c36aea4ead89f1f9d0774b12d7ef869545aa (diff) | |
download | luasocket-5e75dc0857625fb9061660e07732e0f833e4a125.tar.gz luasocket-5e75dc0857625fb9061660e07732e0f833e4a125.tar.bz2 luasocket-5e75dc0857625fb9061660e07732e0f833e4a125.zip |
Wrong class...
Diffstat (limited to 'src/udp.c')
-rw-r--r-- | src/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -262,7 +262,7 @@ static int meth_settimeout(lua_State *L) { | |||
262 | * Turns a master udp object into a client object. | 262 | * Turns a master udp object into a client object. |
263 | \*-------------------------------------------------------------------------*/ | 263 | \*-------------------------------------------------------------------------*/ |
264 | static int meth_setpeername(lua_State *L) { | 264 | static int meth_setpeername(lua_State *L) { |
265 | p_udp udp = (p_udp) aux_checkclass(L, "udp{unconnected}", 1); | 265 | p_udp udp = (p_udp) aux_checkgroup(L, "udp{any}", 1); |
266 | p_tm tm = &udp->tm; | 266 | p_tm tm = &udp->tm; |
267 | const char *address = luaL_checkstring(L, 2); | 267 | const char *address = luaL_checkstring(L, 2); |
268 | int connecting = strcmp(address, "*"); | 268 | int connecting = strcmp(address, "*"); |