Make register_inotify() a bit more obvious

This commit is contained in:
Dennis Schridde 2012-10-01 22:54:52 +02:00
parent 3d065fccba
commit 702f6d3d4e
2 changed files with 4 additions and 5 deletions

View File

@ -351,7 +351,6 @@ inotify_ready(lua_State *L, struct observance *obs)
extern void
register_inotify(lua_State *L)
{
lua_pushstring(L, "inotify");
luaL_register(L, "inotify", linotfylib);
}

View File

@ -1394,13 +1394,13 @@ register_lsyncd(lua_State *L)
lua_settable(L, -3);
lua_pop(L, 1);
lua_getglobal(L, "lsyncd");
#ifdef LSYNCD_WITH_INOTIFY
// TODO why is the here?
lua_getglobal(L, "lsyncd");
register_inotify(L);
lua_settable(L, -3);
#endif
lua_setfield(L, -2, "inotify");
lua_pop(L, 1);
#endif
if (lua_gettop(L)) {
logstring("Error", "internal, stack not empty in lsyncd_register()");
exit(-1); // ERRNO