From: Jim Meyering Date: Sun, 9 Dec 2001 22:39:02 +0000 (+0000) Subject: (readtoken): Declare an index to be of type unsigned X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2a5cf2cdcfa0ae3dc1634fa5ed07fb6c9decb74;p=pspp (readtoken): Declare an index to be of type unsigned to avoid a pedantic warning. --- diff --git a/lib/readtokens.c b/lib/readtokens.c index d8d5ec8b70..8ae1e070a2 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; }