diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-08-16 00:06:04 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2003-08-16 00:06:04 +0000 |
commit | c51d4acf1c2a8675a3bb043e799ff4390cef47d6 (patch) | |
tree | 345b71aa70b50c964a58980461e147a260fa6e0b /src/timeout.c | |
parent | 3099704affa1fda195eb8f3934f6c1f18bf1f706 (diff) | |
download | luasocket-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.c | 2 |
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 | \*-------------------------------------------------------------------------*/ |
128 | int tm_meth_timeout(lua_State *L, p_tm tm) | 128 | int 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"); |