From: Jim Meyering Date: Thu, 16 Oct 2003 07:28:01 +0000 (+0000) Subject: (start_bytes): Rename local, remainder, to avoid X-Git-Tag: v5.1.0~376 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=841cfd35c9b8813957aea09f8905c2ba160e8182;p=thirdparty%2Fcoreutils.git (start_bytes): Rename local, remainder, to avoid gcc's warning about shadowing a global. --- diff --git a/src/tail.c b/src/tail.c index a9d89fce92..8575c18ce5 100644 --- a/src/tail.c +++ b/src/tail.c @@ -768,9 +768,9 @@ start_bytes (const char *pretty_filename, int fd, uintmax_t n_bytes, n_bytes -= bytes_read; else { - size_t remainder = bytes_read - n_bytes; - if (remainder) - xwrite (STDOUT_FILENO, &buffer[n_bytes], remainder); + size_t n_remaining = bytes_read - n_bytes; + if (n_remaining) + xwrite (STDOUT_FILENO, &buffer[n_bytes], n_remaining); break; } }