summaryrefslogtreecommitdiff
path: root/lib/libc/string/wmemcmp.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2005-08-08 05:53:02 +0000
committerMarc Espie <espie@cvs.openbsd.org>2005-08-08 05:53:02 +0000
commitb83058fd179b6de492fa3ed6292d2821ca253806 (patch)
tree2baae503ebb022ad1d8ff55383cedcf18b319815 /lib/libc/string/wmemcmp.c
parent9912e93b5b9dbc80863c5b26ff459f0587f40cbe (diff)
activate LC_CTYPE for 8 bits locale.
Make sure tolower/toupper use the whole 8 bits. okay deraadt@ thanks to everyone who tested
Diffstat (limited to 'lib/libc/string/wmemcmp.c')
-rw-r--r--lib/libc/string/wmemcmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/wmemcmp.c b/lib/libc/string/wmemcmp.c
index fc021c11d12..e35c6207ff6 100644
--- a/lib/libc/string/wmemcmp.c
+++ b/lib/libc/string/wmemcmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wmemcmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */
+/* $OpenBSD: wmemcmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $ */
/* $NetBSD: wmemcmp.c,v 1.3 2003/04/06 18:33:23 tshiozak Exp $ */
/*-
@@ -30,7 +30,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: wmemcmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $";
+static char *rcsid = "$OpenBSD: wmemcmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $";
#endif /* LIBC_SCCS and not lint */
#include <wchar.h>
@@ -44,8 +44,8 @@ wmemcmp(const wchar_t *s1, const wchar_t *s2, size_t n)
for (i = 0; i < n; i++) {
if (*s1 != *s2) {
/* wchar might be unsigned */
- return *(const __nbrune_t *)s1 >
- *(const __nbrune_t *)s2 ? 1 : -1;
+ return *(const rune_t *)s1 >
+ *(const rune_t *)s2 ? 1 : -1;
}
s1++;
s2++;