diff --git a/src/common/rbtree.h b/src/common/rbtree.h index 939cb82..8afc12c 100644 --- a/src/common/rbtree.h +++ b/src/common/rbtree.h @@ -6,6 +6,8 @@ #define RB_RED 0 #define RB_BLACK 1 +#include + typedef unsigned char color_t; typedef unsigned int uint; diff --git a/src/fs/notify_inotify.c b/src/fs/notify_inotify.c index 7652801..258e2d2 100755 --- a/src/fs/notify_inotify.c +++ b/src/fs/notify_inotify.c @@ -150,7 +150,7 @@ static int proc_event(inoev *iev) { case IN_MOVED_FROM : /* TODO: clean this */ sprintf(buf, "%s%s/", event.path, event.filename); - notify_rm_watch_path(buf); + notify_rm_watch(buf); case IN_DELETE : type = NOTIFY_DELETE; break;