wendy

inotify based node watcher
git clone git://git.2f30.org/wendy.git
Log | Files | Refs | README | LICENSE

commit 0aff97c697511ce29bd95b2bb1a68f5a95d6f2ed
parent 5cd21f9a20ee3dbd4d35d6957a5ebdb392ab8523
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon,  2 Mar 2020 14:59:04 +0100

Pass current watcher in wdpath()

Diffstat:
Mwendy.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/wendy.c b/wendy.c @@ -88,10 +88,8 @@ watch(int fd, char *pathname, int mask) } char * -wdpath(struct inotify_event *e) +wdpath(struct inotify_event *e, struct watcher *w) { - int event; - struct watcher *w; static char pathname[PATH_MAX]; if (e->len) @@ -157,7 +155,7 @@ main (int argc, char **argv) } if (verbose && e->mask & IN_ALL_EVENTS) { - printf("%s\t%s\n", evname[e->mask & IN_ALL_EVENTS], wdpath(e)); + printf("%s\t%s\n", evname[e->mask & IN_ALL_EVENTS], wdpath(e, w)); fflush(stdout); }