summaryrefslogtreecommitdiff
path: root/inotail.c
diff options
context:
space:
mode:
Diffstat (limited to 'inotail.c')
-rw-r--r--inotail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inotail.c b/inotail.c
index 784b7bf..5a58a92 100644
--- a/inotail.c
+++ b/inotail.c
@@ -123,8 +123,8 @@ static off_t lines_to_offset_from_end(struct file_struct *f, unsigned long n_lin
n_lines++; /* We also count the last \n */
while (offset > 0 && n_lines > 0) {
- int i, rc;
- int block_size = BUFFER_SIZE; /* Size of the current block we're reading */
+ int i;
+ ssize_t rc, block_size = BUFFER_SIZE; /* Size of the current block we're reading */
if (offset < BUFFER_SIZE)
block_size = offset;