projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec4ea62
)
Avoid new warnings from gcc.
author
Jim Meyering
<jim@meyering.net>
Sun, 28 Apr 2002 21:07:01 +0000
(21:07 +0000)
committer
Jim 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
patch
|
blob
|
history
diff --git
a/src/pr.c
b/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;