summaryrefslogtreecommitdiff
path: root/src/tail.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-06 09:03:29 +0000
committerJim Meyering <jim@meyering.net>2000-08-06 09:03:29 +0000
commit61b0870c410bf17cffc386eb4ab5b11a782c274b (patch)
treed1d6b641a825618ac3e7bc9c2d2e5bec7c762cfd /src/tail.c
parentae9ce08522f0264c2da12a8b10321eb8c873a585 (diff)
downloadcoreutils-61b0870c410bf17cffc386eb4ab5b11a782c274b.tar.xz
(pipe_lines): Declare local `cp' to be const.
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 79be4f3cb..5eaa2f968 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'. */