summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-03-04 14:11:56 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-03-04 14:11:56 +0100
commit52a90bc7c3be7cb3330d4b5a9254c59c046b5f18 (patch)
treef1a9081d66b3efd5cbd045fb7de3ce5929fc11ba
parente4e9ccc55c7cad1aaac8d84d6613188140a874e1 (diff)
inotail.c: Datatype cleanup
-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;