From 40fcc693c339ab9cafba7cf6f68cdb8b430401cf Mon Sep 17 00:00:00 2001
From: Josh Gao <[email protected]>
Date: Fri, 4 Dec 2015 15:12:15 -0800
Subject: [PATCH] tail: use off_t instead of ssize_t for file offset.
---
toys/posix/tail.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/toys/posix/tail.c b/toys/posix/tail.c
index 80556e2..910b88f 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;
--
2.6.0.rc2.230.g3dd15c0
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net