mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-04 10:58:28 +00:00
lua 5.4 fixes
This commit is contained in:
parent
8c71941f9c
commit
dd84b2e6b6
8
lsyncd.c
8
lsyncd.c
@ -489,7 +489,7 @@ static void safeexit (lua_State *L, int exitcode) {
|
|||||||
lua_pushinteger(L, exitcode);
|
lua_pushinteger(L, exitcode);
|
||||||
lua_call(L, 2, 1);
|
lua_call(L, 2, 1);
|
||||||
if (lua_isnumber(L, -1)) {
|
if (lua_isnumber(L, -1)) {
|
||||||
exitcode = luaL_checkint(L, -1);
|
exitcode = luaL_checkinteger(L, -1);
|
||||||
}
|
}
|
||||||
exit(exitcode);
|
exit(exitcode);
|
||||||
}
|
}
|
||||||
@ -1138,8 +1138,8 @@ l_now(lua_State *L)
|
|||||||
static int
|
static int
|
||||||
l_kill( lua_State *L )
|
l_kill( lua_State *L )
|
||||||
{
|
{
|
||||||
pid_t pid = luaL_checkint( L, 1 );
|
pid_t pid = luaL_checkinteger( L, 1 );
|
||||||
int sig = luaL_checkint( L, 2 );
|
int sig = luaL_checkinteger( L, 2 );
|
||||||
|
|
||||||
int rv = kill(pid, sig );
|
int rv = kill(pid, sig );
|
||||||
|
|
||||||
@ -1699,7 +1699,7 @@ l_readdir( lua_State *L )
|
|||||||
int
|
int
|
||||||
l_terminate( lua_State *L )
|
l_terminate( lua_State *L )
|
||||||
{
|
{
|
||||||
int exitcode = luaL_checkint( L, 1 );
|
int exitcode = luaL_checkinteger( L, 1 );
|
||||||
|
|
||||||
exit( exitcode );
|
exit( exitcode );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user