From a388181df16d237c164ddf79cde6aed58dee6a8e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 5 Jan 2007 19:07:24 +0100 Subject: inotail.c: Make tail_pipe() return ssize_t read() returns ssize_t and we were casting it to signed int which might be smaller on some architectures. --- inotail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inotail.c') diff --git a/inotail.c b/inotail.c index 26092d3..783ac3b 100644 --- a/inotail.c +++ b/inotail.c @@ -196,9 +196,9 @@ static off_t bytes_to_offset(struct file_struct *f, unsigned int n_bytes) return (from_begin ? ((off_t) n_bytes - 1) : (f->st_size - (off_t) n_bytes)); } -static int tail_pipe(struct file_struct *f) +static ssize_t tail_pipe(struct file_struct *f) { - int rc; + ssize_t rc; char buf[BUFFER_SIZE]; if (verbose) -- cgit v1.2.3-54-g00ecf