rbtree: move delete_fn from the structure to argument.
This commit is contained in:
parent
ae3dec912a
commit
b5f0c3117c
5 changed files with 10 additions and 14 deletions
|
|
@ -136,8 +136,8 @@ int inotify_unmap_path(const char *path) {
|
|||
|
||||
void inotify_unmap_all() {
|
||||
|
||||
rbtree_free(&tree_path_wd);
|
||||
rbtree_free(&tree_wd_paths);
|
||||
rbtree_free(&tree_path_wd, xfree);
|
||||
rbtree_free(&tree_wd_paths, wd_free);
|
||||
}
|
||||
|
||||
int inotify_map_get_wd(const char *path) {
|
||||
|
|
|
|||
Reference in a new issue