summaryrefslogtreecommitdiff
path: root/src/wc.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/wc.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/wc.c')
-rw-r--r--src/wc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wc.c b/src/wc.c
index 702a7a779..d5a0afc23 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -234,8 +234,8 @@ wc (int fd, char const *file_x, struct fstatus *fstatus)
fstatus->failed = fstat (fd, &fstatus->st);
if (! fstatus->failed && S_ISREG (fstatus->st.st_mode)
- && (current_pos = lseek (fd, (off_t) 0, SEEK_CUR)) != -1
- && (end_pos = lseek (fd, (off_t) 0, SEEK_END)) != -1)
+ && (current_pos = lseek (fd, 0, SEEK_CUR)) != -1
+ && (end_pos = lseek (fd, 0, SEEK_END)) != -1)
{
/* Be careful here. The current position may actually be
beyond the end of the file. As in the example above. */