From: J William Piggott Date: Tue, 6 Jun 2017 00:28:26 +0000 (-0400) Subject: parse-date: use to_uchar() instead of assignment. X-Git-Tag: v2.31-rc1~285^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfbace763cd044d95a865038849e0b2895c6e4d5;p=thirdparty%2Futil-linux.git parse-date: use to_uchar() instead of assignment. Reported-by: Ruediger Meier Influenced-by: gnulib 30784c4 Paul Eggert Signed-off-by: J William Piggott --- diff --git a/lib/parse-date.y b/lib/parse-date.y index a8f710cd8a..620626e29c 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)