diff --git a/src/inotify-watch.c b/src/inotify-watch.c index ba36c39..23a9c50 100644 --- a/src/inotify-watch.c +++ b/src/inotify-watch.c @@ -60,7 +60,7 @@ void inotify_watch_rm(struct watch *watch) { tree_unlink(&watch->tree); } -struct watch* inoitfy_watch_find_child(struct watch *watch, const char *path) { +struct watch* inotify_watch_find_child(struct watch *watch, const char *path) { if (watch->tree.child) { struct watch *it = (struct watch *) watch->tree.child; diff --git a/src/inotify-watch.h b/src/inotify-watch.h index 823d90b..231957a 100644 --- a/src/inotify-watch.h +++ b/src/inotify-watch.h @@ -18,4 +18,6 @@ struct watch* inotify_watch_add(struct watch *parent, struct watch *watch); void inotify_watch_rm(struct watch *watch); +struct watch* inotify_watch_find_child(struct watch *watch, const char *path); + #endif