[PATCH 06/10] parse-date: use to_uchar() instead of assignment.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reported-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx>
Influenced-by: gnulib 30784c4 Paul Eggert <eggert@xxxxxxxxxxx>
Signed-off-by: J William Piggott <elseifthen@xxxxxxx>
---
 lib/parse-date.y | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/parse-date.y b/lib/parse-date.y
index a8f710c..620626e 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)
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux