summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/inotail.c b/inotail.c
index 1081aec..4d44145 100644
--- a/inotail.c
+++ b/inotail.c
@@ -382,7 +382,9 @@ static int watch_files(struct file_struct *files, int n_files)
/* Which file has produced the event? */
for (i = 0; i < n_files; i++) {
- if (!files[i].ignore && files[i].fd >= 0 && files[i].i_watch == inev->wd) {
+ if (!files[i].ignore
+ && files[i].fd >= 0
+ && files[i].i_watch == inev->wd) {
f = &files[i];
break;
}
@@ -399,7 +401,6 @@ static int watch_files(struct file_struct *files, int n_files)
}
close(ifd);
-
return -1;
}