diff options
author | Josh Gao <jmgao@google.com> | 2015-12-04 15:12:15 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-12-09 21:42:21 -0600 |
commit | 5cb65054067391af7602bc303d77349c76648faf (patch) | |
tree | 34e80fa27bdd7337438d793c2fc175bd43d539ba /toys/posix | |
parent | d336af4180542c9d526dece02d1a27232ef1ca6a (diff) | |
download | toybox-5cb65054067391af7602bc303d77349c76648faf.tar.gz |
tail: use off_t instead of ssize_t for file offset.
Diffstat (limited to 'toys/posix')
-rw-r--r-- | toys/posix/tail.c | 2 |
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; |