diff options
author | Jim Meyering <jim@meyering.net> | 2001-12-09 22:39:02 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-12-09 22:39:02 +0000 |
commit | 5b34b167f98b7246e60c05e5ec0fcfe18dc17f7b (patch) | |
tree | aa691d79414bf0d1a7ec845823769d86a2634f45 | |
parent | 923091ff96b7d35f1517ed6ee6900d4971d5623e (diff) | |
download | coreutils-5b34b167f98b7246e60c05e5ec0fcfe18dc17f7b.tar.xz |
(readtoken): Declare an index to be of type unsigned
to avoid a pedantic warning.
-rw-r--r-- | lib/readtokens.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/readtokens.c b/lib/readtokens.c index d8d5ec8b7..8ae1e070a 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -108,9 +108,10 @@ readtoken (FILE *stream, if (!same_delimiters) { const char *t; + unsigned int j; saved_delim = delim; - for (i = 0; i < sizeof (isdelim); i++) - isdelim[i] = 0; + for (j = 0; j < sizeof (isdelim); j++) + isdelim[j] = 0; for (t = delim; *t; t++) isdelim[(unsigned int) *t] = 1; } |