]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
parse-date: use to_uchar() instead of assignment.
authorJ William Piggott <elseifthen@gmx.com>
Tue, 6 Jun 2017 00:28:26 +0000 (20:28 -0400)
committerJ William Piggott <elseifthen@gmx.com>
Thu, 15 Jun 2017 19:02:49 +0000 (15:02 -0400)
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>
lib/parse-date.y

index a8f710cd8a66ef8664594b4ad73ca746599a2353..620626e29cd981df6559422e9ac4c356c462f200 100644 (file)
@@ -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)