diff options
author | Jim Meyering <jim@meyering.net> | 2000-07-17 08:17:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-07-17 08:17:12 +0000 |
commit | 870d8663fb2e8455897ba88f86aa8c2632b2d35c (patch) | |
tree | 107fb16ab84ddbd634556790e6818ed1e9f51a30 /src | |
parent | f4758f2165e90ab6e42594d529ac4721b53f456f (diff) | |
download | coreutils-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |