wendy

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

commit 5d5db1f773592dcba430662794f3cc33e8084559
parent c992a4aae67e5c852593e0ff87a2463100ac7413
Author: Willy Goiffon <dev@z3bra.org>
Date:   Wed,  4 Mar 2020 15:05:21 +0100

Cosmetic changes for if/else statement

Diffstat:
Mwendy.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/wendy.c b/wendy.c @@ -92,13 +92,11 @@ wdpath(struct inotify_event *e, struct watcher *w) { static char pathname[PATH_MAX]; + strlcpy(pathname, w->path, PATH_MAX); if (e->len) snprintf(pathname, PATH_MAX, "%s/%s", w->path, e->name); - else - strlcpy(pathname, w->path, PATH_MAX); return pathname; - }