summaryrefslogtreecommitdiff
path: root/src/pr.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-04-28 21:07:01 +0000
committerJim Meyering <jim@meyering.net>2002-04-28 21:07:01 +0000
commite464e1da1c57262136d0a3a568e90ad753782737 (patch)
tree3d9e18c26205ab2f350963578bc0a37f3cde4f11 /src/pr.c
parentec4ea625c91078ac1deaabc71c1d4103e6f7bb5b (diff)
downloadcoreutils-e464e1da1c57262136d0a3a568e90ad753782737.tar.xz
Avoid new warnings from gcc.
[struct COLUMN] <name>: Declare member to be const. (init_fps): Declare local variable `firstname' to be const.
Diffstat (limited to 'src/pr.c')
-rw-r--r--src/pr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pr.c b/src/pr.c
index f9a7601b1..cae03f069 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -380,7 +380,7 @@ struct COLUMN;
struct COLUMN
{
FILE *fp; /* Input stream for this column. */
- char *name; /* File name. */
+ char const *name; /* File name. */
enum
{
OPEN,
@@ -1335,7 +1335,7 @@ init_fps (int number_of_files, char **av)
int i, files_left;
COLUMN *p;
FILE *firstfp;
- char *firstname;
+ char const *firstname;
total_files = 0;