diff options
Diffstat (limited to 'loslib.c')
-rw-r--r-- | loslib.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loslib.c,v 1.20 2006/09/19 13:57:08 roberto Exp roberto $ | 2 | ** $Id: loslib.c,v 1.21 2007/05/03 20:49:29 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 | */ |
@@ -224,8 +224,7 @@ static int os_setlocale (lua_State *L) { | |||
224 | 224 | ||
225 | 225 | ||
226 | static int os_exit (lua_State *L) { | 226 | static int os_exit (lua_State *L) { |
227 | exit(luaL_optint(L, 1, EXIT_SUCCESS)); | 227 | return (exit(luaL_optint(L, 1, EXIT_SUCCESS)), 0); /* avoid warnings */ |
228 | return 0; /* to avoid warnings */ | ||
229 | } | 228 | } |
230 | 229 | ||
231 | static const luaL_Reg syslib[] = { | 230 | static const luaL_Reg syslib[] = { |