From 5cb65054067391af7602bc303d77349c76648faf Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Fri, 4 Dec 2015 15:12:15 -0800 Subject: tail: use off_t instead of ssize_t for file offset. --- toys/posix/tail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') diff --git a/toys/posix/tail.c b/toys/posix/tail.c index 80556e2b..910b88f3 100644 --- a/toys/posix/tail.c +++ b/toys/posix/tail.c @@ -74,7 +74,7 @@ static int try_lseek(int fd, long bytes, long lines) { struct line_list *list = 0, *temp; int flag = 0, chunk = sizeof(toybuf); - ssize_t pos = lseek(fd, 0, SEEK_END); + off_t pos = lseek(fd, 0, SEEK_END); // If lseek() doesn't work on this stream, return now. if (pos<0) return 0; -- cgit v1.2.3