Archived
1
0
Fork 0

inotify-map: Make the compiler happy and remove the pointer to int casts.

This commit is contained in:
Henrik Hautakoski 2011-02-06 19:53:38 +01:00
parent fc64c45e58
commit 8f1f7c356c

View file

@ -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;
}