tCosmetic changes for if/else statement - wendy - watch files/directories and run commands on any event
HTML git clone git://z3bra.org/wendy
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 5d5db1f773592dcba430662794f3cc33e8084559
DIR parent c992a4aae67e5c852593e0ff87a2463100ac7413
HTML Author: Willy Goiffon <dev@z3bra.org>
Date: Wed, 4 Mar 2020 15:05:21 +0100
Cosmetic changes for if/else statement
Diffstat:
M wendy.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
DIR diff --git a/wendy.c b/wendy.c
t@@ -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;
-
}