summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-06-07 07:15:15 +0200
committerJim Meyering <meyering@redhat.com>2010-06-08 13:16:26 +0200
commit9e7edd8467232b5c6b714d588d0e1528cc54151b (patch)
tree3894cfe54cb210dbaf5a58a02e72600afc04141b /src/tail.c
parentad89ea6a0dc4a404871f87eef6e9727c07f4cfb6 (diff)
downloadcoreutils-9e7edd8467232b5c6b714d588d0e1528cc54151b.tar.xz
maint: adjust INT_BUFSIZE_BOUND usage for maintainability
* src/tail.c (xlseek): Give INT_BUFSIZE_BOUND a variable name, not a type name. * src/ls.c (gobble_file, format_user_or_group_width): Likewise. * src/head.c (elide_tail_bytes_pipe): Likewise. (elide_tail_lines_seekable, main): Likewise. [This change is not complete -- there are doubtless other uses that can be updated in the same way.]
Diffstat (limited to 'src/tail.c')
-rw-r--r--src/tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index 9e95dee7e..75e9d53e3 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -434,7 +434,7 @@ static off_t
xlseek (int fd, off_t offset, int whence, char const *filename)
{
off_t new_offset = lseek (fd, offset, whence);
- char buf[INT_BUFSIZE_BOUND (off_t)];
+ char buf[INT_BUFSIZE_BOUND (offset)];
char *s;
if (0 <= new_offset)