From c1b7d9d93dc8e88693162c0d984a114371919fdd Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sun, 24 Jul 2016 20:00:34 +0200 Subject: Implement per-locale string functions strcasecmp_l, strcoll_l, strncasecmp_l, strxfrm_l, wcscasecmp_l, wcscoll_l, wcstrncasecmp_l, wcstrxfrm_l, strftime_l. Add missing CHEWOUT_FILES from previous patch. TODO: strfmon_l. Signed-off by: Corinna Vinschen --- newlib/libc/string/strcasecmp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'newlib/libc/string/strcasecmp.c') diff --git a/newlib/libc/string/strcasecmp.c b/newlib/libc/string/strcasecmp.c index ebf23cd51..df8510b13 100644 --- a/newlib/libc/string/strcasecmp.c +++ b/newlib/libc/string/strcasecmp.c @@ -46,13 +46,11 @@ _DEFUN (strcasecmp, (s1, s2), _CONST char *s1 _AND _CONST char *s2) { - _CONST unsigned char *ucs1 = (_CONST unsigned char *) s1; - _CONST unsigned char *ucs2 = (_CONST unsigned char *) s2; int d = 0; for ( ; ; ) { - _CONST int c1 = tolower(*ucs1++); - _CONST int c2 = tolower(*ucs2++); + _CONST int c1 = tolower(*s1++); + _CONST int c2 = tolower(*s2++); if (((d = c1 - c2) != 0) || (c2 == '\0')) break; } -- cgit v1.2.3