From 8f1f7c356c6b0cba00d0d38610f31e82b1aa139f Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sun, 6 Feb 2011 19:53:38 +0100 Subject: [PATCH] inotify-map: Make the compiler happy and remove the pointer to int casts. --- src/inotify-map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inotify-map.c b/src/inotify-map.c index 6139aa6..390d1fb 100644 --- a/src/inotify-map.c +++ b/src/inotify-map.c @@ -65,7 +65,7 @@ static void map_path_wd(const char *path, int wd) { static int unmap_path_wd(int wd, const char *path) { - return rbtree_delete(&tree_path_wd, &path); + return rbtree_delete(&tree_path_wd, &path) != NULL; } static void unmap_wd_path(int wd, const char *path) { @@ -116,7 +116,7 @@ int inotify_unmap_wd(int wd) { struct map_wd *m = rbtree_search(&tree_wd_paths, &wd); if (m) { unmap_all_paths(m); - return rbtree_delete(&tree_wd_paths, &wd); + return rbtree_delete(&tree_wd_paths, &wd) != NULL; } return 0; }