aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.c
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2003-08-16 00:06:04 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2003-08-16 00:06:04 +0000
commitc51d4acf1c2a8675a3bb043e799ff4390cef47d6 (patch)
tree345b71aa70b50c964a58980461e147a260fa6e0b /src/timeout.c
parent3099704affa1fda195eb8f3934f6c1f18bf1f706 (diff)
downloadluasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.tar.gz
luasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.tar.bz2
luasocket-c51d4acf1c2a8675a3bb043e799ff4390cef47d6.zip
Adjusted a few inconsistencies with the manual.
Diffstat (limited to 'src/timeout.c')
-rw-r--r--src/timeout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeout.c b/src/timeout.c
index 6a30e3a..38d1135 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -125,7 +125,7 @@ void tm_open(lua_State *L)
125* time: time out value in seconds 125* time: time out value in seconds
126* mode: "b" for block timeout, "t" for total timeout. (default: b) 126* mode: "b" for block timeout, "t" for total timeout. (default: b)
127\*-------------------------------------------------------------------------*/ 127\*-------------------------------------------------------------------------*/
128int tm_meth_timeout(lua_State *L, p_tm tm) 128int tm_meth_settimeout(lua_State *L, p_tm tm)
129{ 129{
130 int ms = lua_isnil(L, 2) ? -1 : (int) (luaL_checknumber(L, 2)*1000.0); 130 int ms = lua_isnil(L, 2) ? -1 : (int) (luaL_checknumber(L, 2)*1000.0);
131 const char *mode = luaL_optstring(L, 3, "b"); 131 const char *mode = luaL_optstring(L, 3, "b");