diff options
author | J William Piggott | 2017-06-06 02:28:26 +0200 |
---|---|---|
committer | J William Piggott | 2017-06-15 21:02:49 +0200 |
commit | bfbace763cd044d95a865038849e0b2895c6e4d5 (patch) | |
tree | c4b43fe41b693384e3efb2f89023d21a23dae391 /lib/parse-date.y | |
parent | parse-date: use uintmax_t where appropriate (diff) | |
download | kernel-qcow2-util-linux-bfbace763cd044d95a865038849e0b2895c6e4d5.tar.gz kernel-qcow2-util-linux-bfbace763cd044d95a865038849e0b2895c6e4d5.tar.xz kernel-qcow2-util-linux-bfbace763cd044d95a865038849e0b2895c6e4d5.zip |
parse-date: use to_uchar() instead of assignment.
Reported-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Influenced-by: gnulib 30784c4 Paul Eggert <eggert@cs.ucla.edu>
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'lib/parse-date.y')
-rw-r--r-- | lib/parse-date.y | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/parse-date.y b/lib/parse-date.y index a8f710cd8..620626e29 100644 --- a/lib/parse-date.y +++ b/lib/parse-date.y @@ -990,10 +990,8 @@ static table const * lookup_word(parser_control const *pc, char *word) int abbrev; /* Make it uppercase. */ - for (p = word; *p; p++) { - unsigned char ch = *p; - *p = c_toupper (ch); - } + for (p = word; *p; p++) + *p = c_toupper (to_uchar (*p)); for (tp = meridian_table; tp->name; tp++) if (strcmp (word, tp->name) == 0) |