summaryrefslogtreecommitdiff
path: root/src/tac.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-05-28 13:52:13 +0200
committerJim Meyering <meyering@redhat.com>2011-05-28 13:52:17 +0200
commitd0a9750e08a4cf0329f99a9956ab85f196a81263 (patch)
treef1a0c9ca465221c0f8c74126c314f5bf9acc6264 /src/tac.c
parent963d809ae9d2ff4bc4844d2ebaf64a74deb1ae7e (diff)
downloadcoreutils-d0a9750e08a4cf0329f99a9956ab85f196a81263.tar.xz
maint: remove useless (off_t) cast of lseek arg
* src/wc.c (wc): Remove unnecessary cast. * src/head.c (elide_tail_bytes_file, elide_tail_lines_file): Likewise. * src/tac.c (tac_seekable, tac_file): Likewise.
Diffstat (limited to 'src/tac.c')
-rw-r--r--src/tac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tac.c b/src/tac.c
index 2e110fac5..65ac6a6fc 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -215,7 +215,7 @@ tac_seekable (int input_fd, const char *file)
size_t match_length1 = match_length - 1; /* Speed optimization, non-regexp. */
/* Find the size of the input file. */
- file_pos = lseek (input_fd, (off_t) 0, SEEK_END);
+ file_pos = lseek (input_fd, 0, SEEK_END);
if (file_pos < 1)
return true; /* It's an empty file. */
@@ -546,7 +546,7 @@ tac_file (const char *filename)
}
}
- file_size = lseek (fd, (off_t) 0, SEEK_END);
+ file_size = lseek (fd, 0, SEEK_END);
ok = (file_size < 0 || isatty (fd)
? tac_nonseekable (fd, filename)