summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-05-23 19:35:15 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-05-23 19:35:15 +0200
commit9d114f58550b7fd582d1328e95592deca6012f95 (patch)
tree138a41a58e53dfb6b28dc32bd41a02019c2ab891
parent18244146721e33ff0307cdddec3024cc4a1f91e4 (diff)
inotail.c: Coding style cleanups
-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;
}