]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Rewrite to avoid casts.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:52:39 +0000 (22:52 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:52:39 +0000 (22:52 +0000)
lib/readtokens.c

index 438441c4e535c930571f677b2b53b17fa437570e..2ccf6a9380cd159013e8dfab376e5ade6fc8e78d 100644 (file)
@@ -96,7 +96,10 @@ readtoken (FILE *stream,
       saved_delim = delim;
       memset (isdelim, 0, sizeof isdelim);
       for (j = 0; j < n_delim; j++)
-       isdelim[(unsigned char) delim[j]] = 1;
+       {
+         unsigned char ch = delim[j];
+         isdelim[ch] = 1;
+       }
     }
 
   /* FIXME: don't fool with this caching.  Use strchr instead.  */