From dc94d1185c7ea4a31a539cbaa3bb1c1fb4d9eca0 Mon Sep 17 00:00:00 2001 From: H Hautakoski Date: Mon, 14 Jun 2010 22:57:48 +0200 Subject: [PATCH] small fix. --- src/common/rbtree.h | 2 ++ src/fs/notify_inotify.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;