aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-27 07:58:04 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-27 07:58:04 +0000
commit7c97e8e40aaa665226fb54449773dc3134e755b2 (patch)
tree47888d4c924fc24bf3b355bf58120ea3cdc74bc4 /src/udp.c
parenteb0fc857ddea6f084d338589e2a33d3e7d4eade6 (diff)
downloadluasocket-7c97e8e40aaa665226fb54449773dc3134e755b2.tar.gz
luasocket-7c97e8e40aaa665226fb54449773dc3134e755b2.tar.bz2
luasocket-7c97e8e40aaa665226fb54449773dc3134e755b2.zip
Almost ready for beta3
Diffstat (limited to 'src/udp.c')
-rw-r--r--src/udp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udp.c b/src/udp.c
index 97a6169..7a60080 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -288,7 +288,8 @@ static int meth_setpeername(lua_State *L) {
288static int meth_close(lua_State *L) { 288static int meth_close(lua_State *L) {
289 p_udp udp = (p_udp) aux_checkgroup(L, "udp{any}", 1); 289 p_udp udp = (p_udp) aux_checkgroup(L, "udp{any}", 1);
290 sock_destroy(&udp->sock); 290 sock_destroy(&udp->sock);
291 return 0; 291 lua_pushnumber(L, 1);
292 return 1;
292} 293}
293 294
294/*-------------------------------------------------------------------------*\ 295/*-------------------------------------------------------------------------*\