mirror of https://github.com/octoleo/lsyncd.git
-warning in inotify.c
This commit is contained in:
parent
150616406e
commit
a54bca7fa8
|
@ -71,7 +71,7 @@ static int
|
|||
l_addwatch(lua_State *L)
|
||||
{
|
||||
const char *path = luaL_checkstring(L, 1);
|
||||
lua_Integer wd = inotify_add_watch(inotify_fd, path, standard_event_mask);
|
||||
int wd = inotify_add_watch(inotify_fd, path, standard_event_mask);
|
||||
printlogf(L, "Inotify", "addwatch(%s)->%d", path, wd);
|
||||
lua_pushinteger(L, wd);
|
||||
return 1;
|
||||
|
@ -86,7 +86,7 @@ l_addwatch(lua_State *L)
|
|||
static int
|
||||
l_rmwatch(lua_State *L)
|
||||
{
|
||||
lua_Integer wd = luaL_checkinteger(L, 1);
|
||||
int wd = luaL_checkinteger(L, 1);
|
||||
inotify_rm_watch(inotify_fd, wd);
|
||||
printlogf(L, "Inotify", "rmwatch()<-%d", wd);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue