mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-04-20 18:56:39 +02:00
(lookup_word): Rewrite to avoid cast.
This commit is contained in:
@@ -768,8 +768,11 @@ lookup_word (parser_control const *pc, char *word)
|
||||
|
||||
/* Make it uppercase. */
|
||||
for (p = word; *p; p++)
|
||||
if (ISLOWER ((unsigned char) *p))
|
||||
*p = toupper ((unsigned char) *p);
|
||||
{
|
||||
unsigned char ch = *p;
|
||||
if (ISLOWER (ch))
|
||||
*p = toupper (ch);
|
||||
}
|
||||
|
||||
for (tp = meridian_table; tp->name; tp++)
|
||||
if (strcmp (word, tp->name) == 0)
|
||||
|
||||
Reference in New Issue
Block a user