mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
making it Lua 5.2 (and 5.1) compatible
This commit is contained in:
parent
b6fa608787
commit
ab36ab7823
@ -129,7 +129,7 @@ l_rmwatch(lua_State *L)
|
||||
/**
|
||||
* Cores inotify functions.
|
||||
*/
|
||||
static const luaL_reg linotfylib[] = {
|
||||
static const luaL_Reg linotfylib[] = {
|
||||
{"addwatch", l_addwatch },
|
||||
{"rmwatch", l_rmwatch },
|
||||
{NULL, NULL}
|
||||
|
4
lsyncd.c
4
lsyncd.c
@ -1263,7 +1263,7 @@ l_nonobserve_fd(lua_State *L)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static const luaL_reg lsyncdlib[] = {
|
||||
static const luaL_Reg lsyncdlib[] = {
|
||||
{"configure", l_configure },
|
||||
{"exec", l_exec },
|
||||
{"log", l_log },
|
||||
@ -1676,7 +1676,7 @@ main1(int argc, char *argv[])
|
||||
int argp = 1;
|
||||
|
||||
// load Lua
|
||||
L = lua_open();
|
||||
L = luaL_newstate();
|
||||
luaL_openlibs(L);
|
||||
{
|
||||
// checks the lua version
|
||||
|
Loading…
Reference in New Issue
Block a user