From: Paul Eggert Date: Sun, 11 Aug 2024 01:55:09 +0000 (-0700) Subject: head: off_t not uintmax_t for file offset X-Git-Tag: v9.6~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9e2719e0dd2366f0381daa832f9415f3162af2;p=thirdparty%2Fcoreutils.git head: off_t not uintmax_t for file offset * src/head.c (elide_tail_lines_pipe): Use off_t, not uintmax_t, for a local var that is a file offset. --- diff --git a/src/head.c b/src/head.c index 2795ae486f..a9155c24c7 100644 --- a/src/head.c +++ b/src/head.c @@ -504,7 +504,7 @@ elide_tail_lines_pipe (char const *filename, int fd, uintmax_t n_elide, size_t nlines; struct linebuffer *next; }; - uintmax_t desired_pos = current_pos; + off_t desired_pos = current_pos; typedef struct linebuffer LBUFFER; LBUFFER *first, *last, *tmp; size_t total_lines = 0; /* Total number of newlines in all buffers. */