diff options
Diffstat (limited to 'loslib.c')
-rw-r--r-- | loslib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loslib.c,v 1.31 2010/07/02 12:01:53 roberto Exp roberto $ | 2 | ** $Id: loslib.c,v 1.32 2010/10/05 12:18:03 roberto Exp roberto $ |
3 | ** Standard Operating System library | 3 | ** Standard Operating System library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -182,7 +182,7 @@ static const char *checkoption (lua_State *L, const char *conv, char *buff) { | |||
182 | return conv; /* to avoid warnings */ | 182 | return conv; /* to avoid warnings */ |
183 | } | 183 | } |
184 | 184 | ||
185 | 185 | ||
186 | static int os_date (lua_State *L) { | 186 | static int os_date (lua_State *L) { |
187 | const char *s = luaL_optstring(L, 1, "%c"); | 187 | const char *s = luaL_optstring(L, 1, "%c"); |
188 | time_t t = luaL_opt(L, (time_t)luaL_checknumber, 2, time(NULL)); | 188 | time_t t = luaL_opt(L, (time_t)luaL_checknumber, 2, time(NULL)); |