From 6f472f800bba39941ed3718069ba1c0e23d50ae1 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 17 Mar 2011 20:22:16 +0200 Subject: [PATCH] inotify-watch: add inotify_watch_find_child --- src/inotify-watch.c | 2 +- src/inotify-watch.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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