aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2015-12-04 15:12:15 -0800
committerRob Landley <rob@landley.net>2015-12-09 21:42:21 -0600
commit5cb65054067391af7602bc303d77349c76648faf (patch)
tree34e80fa27bdd7337438d793c2fc175bd43d539ba /toys
parentd336af4180542c9d526dece02d1a27232ef1ca6a (diff)
downloadtoybox-5cb65054067391af7602bc303d77349c76648faf.tar.gz
tail: use off_t instead of ssize_t for file offset.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/tail.c2
1 files changed, 1 insertions, 1 deletions
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;