diff options
author | Jim Meyering <meyering@redhat.com> | 2011-05-28 13:52:13 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-05-28 13:52:17 +0200 |
commit | d0a9750e08a4cf0329f99a9956ab85f196a81263 (patch) | |
tree | f1a0c9ca465221c0f8c74126c314f5bf9acc6264 /src/wc.c | |
parent | 963d809ae9d2ff4bc4844d2ebaf64a74deb1ae7e (diff) | |
download | coreutils-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. */ |