diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 22:52:39 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-02 22:52:39 +0000 |
commit | 7fed0a985bf0ddc625017ead80fdd6833343a9a7 (patch) | |
tree | a65575be31806b37501b112a41a8289e91336ec3 /lib | |
parent | f9bbf56c51fc7a89b16ba1b6baa5a166d22e65f2 (diff) | |
download | coreutils-7fed0a985bf0ddc625017ead80fdd6833343a9a7.tar.xz |
Rewrite to avoid casts.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/readtokens.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/readtokens.c b/lib/readtokens.c index 438441c4e..2ccf6a938 100644 --- a/lib/readtokens.c +++ b/lib/readtokens.c @@ -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. */ |