summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-17 08:17:12 +0000
committerJim Meyering <jim@meyering.net>2000-07-17 08:17:12 +0000
commit870d8663fb2e8455897ba88f86aa8c2632b2d35c (patch)
tree107fb16ab84ddbd634556790e6818ed1e9f51a30 /src
parentf4758f2165e90ab6e42594d529ac4721b53f456f (diff)
downloadcoreutils-870d8663fb2e8455897ba88f86aa8c2632b2d35c.tar.xz
Avoid warnings.
(struct bin_str): Declare `string' member to be `const'. (put_indicator): Declare local `p' to be `const'.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ls.c b/src/ls.c
index 83a493707..fa74e6980 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -202,7 +202,7 @@ struct fileinfo
struct bin_str
{
int len; /* Number of bytes */
- char *string; /* Pointer to the same */
+ const 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 const char *p;
p = ind->string;