From: Jim Meyering Date: Sun, 6 Aug 2000 09:03:29 +0000 (+0000) Subject: (pipe_lines): Declare local `cp' to be const. X-Git-Tag: TEXTUTILS-2_0g~6 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=61b0870c410bf17cffc386eb4ab5b11a782c274b;p=thirdparty%2Fcoreutils.git (pipe_lines): Declare local `cp' to be const. --- diff --git a/src/tail.c b/src/tail.c index 79be4f3cb0..5eaa2f9688 100644 --- a/src/tail.c +++ b/src/tail.c @@ -545,7 +545,7 @@ pipe_lines (const char *pretty_filename, int fd, long int n_lines) /* Find the correct beginning, then print the rest of the file. */ if (total_lines > n_lines) { - char *cp; + const char *cp; /* Skip `total_lines' - `n_lines' newlines. We made sure that `total_lines' - `n_lines' <= `tmp->nlines'. */