Avoid new warnings from gcc.
authorJim Meyering <jim@meyering.net>
Sun, 28 Apr 2002 21:07:01 +0000 (21:07 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 28 Apr 2002 21:07:01 +0000 (21:07 +0000)
[struct COLUMN] <name>: Declare member to be const.
(init_fps): Declare local variable `firstname' to be const.

src/pr.c

index f9a7601..cae03f0 100644 (file)
--- 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;