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:
f4758f2
)
Avoid warnings.
author
Jim Meyering
<jim@meyering.net>
Mon, 17 Jul 2000 08:17:12 +0000
(08:17 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 17 Jul 2000 08:17:12 +0000
(08:17 +0000)
(struct bin_str): Declare `string' member to be `const'.
(put_indicator): Declare local `p' to be `const'.
src/ls.c
patch
|
blob
|
history
diff --git
a/src/ls.c
b/src/ls.c
index
83a4937
..
fa74e69
100644
(file)
--- a/
src/ls.c
+++ b/
src/ls.c
@@
-202,7
+202,7
@@
struct fileinfo
struct bin_str
{
int len; /* Number of bytes */
- c
har *string;
/* Pointer to the same */
+ c
onst char *string;
/* Pointer to the same */
};
#ifndef STDC_HEADERS
@@
-2605,7
+2605,7
@@
static void
put_indicator (const struct bin_str *ind)
{
register int i;
- register char *p;
+ register c
onst c
har *p;
p = ind->string;