summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inotail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inotail.c b/inotail.c
index e6f8f08..81864b5 100644
--- a/inotail.c
+++ b/inotail.c
@@ -363,7 +363,7 @@ static int watch_files(struct file_struct *files, int n_files)
memset(buf, 0, buflen);
while (n_ignored < n_files) {
- int len;
+ ssize_t len;
len = read(ifd, buf, buflen);
inev = (struct inotify_event *) buf;