]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(start_bytes): Rename local, remainder, to avoid
authorJim Meyering <jim@meyering.net>
Thu, 16 Oct 2003 07:28:01 +0000 (07:28 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 16 Oct 2003 07:28:01 +0000 (07:28 +0000)
gcc's warning about shadowing a global.

src/tail.c

index a9d89fce927efc0fdc940d08404c192f1dd00eee..8575c18ce5b9ad7c723fa6c0ded5b6473bd9e6a0 100644 (file)
@@ -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;
        }
     }