Wrong class...

This commit is contained in:
Diego Nehab 2005-04-13 22:18:21 +00:00
parent e7b7c36aea
commit 5e75dc0857
2 changed files with 2 additions and 1 deletions

1
FIX
View File

@ -9,3 +9,4 @@ check all "require("http")" etc in the manual.
make sure sock_gethostname.* only return success if the hp is not null! make sure sock_gethostname.* only return success if the hp is not null!
change 'l' prefix in C libraries to 'l-something'... change 'l' prefix in C libraries to 'l-something'...
don't forget the declarations in luasocket.h and mime.h!!! don't forget the declarations in luasocket.h and mime.h!!!
setpeername was using udp{unconnected}

View File

@ -262,7 +262,7 @@ static int meth_settimeout(lua_State *L) {
* Turns a master udp object into a client object. * Turns a master udp object into a client object.
\*-------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------*/
static int meth_setpeername(lua_State *L) { static int meth_setpeername(lua_State *L) {
p_udp udp = (p_udp) aux_checkclass(L, "udp{unconnected}", 1); p_udp udp = (p_udp) aux_checkgroup(L, "udp{any}", 1);
p_tm tm = &udp->tm; p_tm tm = &udp->tm;
const char *address = luaL_checkstring(L, 2); const char *address = luaL_checkstring(L, 2);
int connecting = strcmp(address, "*"); int connecting = strcmp(address, "*");