diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-01-18 13:37:10 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-01-18 13:37:10 -0200 |
commit | 6f8257ec5f728889c412f6d8da0c66614ccde708 (patch) | |
tree | 7879a38dd310800d0b1505dc914ba0c589f57470 | |
parent | 87b0191753a9e379f75864b3295125348ab4263d (diff) | |
download | lua-6f8257ec5f728889c412f6d8da0c66614ccde708.tar.gz lua-6f8257ec5f728889c412f6d8da0c66614ccde708.tar.bz2 lua-6f8257ec5f728889c412f6d8da0c66614ccde708.zip |
it seems useless trying to avoid this warning...
-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.21 2007/05/03 20:49:29 roberto Exp roberto $ | 2 | ** $Id: loslib.c,v 1.22 2007/09/14 13:26:28 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,7 +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 | return (exit(luaL_optint(L, 1, EXIT_SUCCESS)), 0); /* avoid warnings */ | 227 | exit(luaL_optint(L, 1, EXIT_SUCCESS)); |
228 | } | 228 | } |
229 | 229 | ||
230 | static const luaL_Reg syslib[] = { | 230 | static const luaL_Reg syslib[] = { |