summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcscmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/wcscmp.c')
-rw-r--r--lib/libc/string/wcscmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/wcscmp.c b/lib/libc/string/wcscmp.c
index d8a9aa73fb1..ebbb87ca4d7 100644
--- a/lib/libc/string/wcscmp.c
+++ b/lib/libc/string/wcscmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */
+/* $OpenBSD: wcscmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $ */
/* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */
/*-
@@ -34,7 +34,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $";
+static char *rcsid = "$OpenBSD: wcscmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $";
#endif /* LIBC_SCCS and not lint */
#include <wchar.h>
@@ -51,5 +51,5 @@ wcscmp(const wchar_t *s1, const wchar_t *s2)
if (*s1++ == 0)
return (0);
/* XXX assumes wchar_t = int */
- return (*(const __nbrune_t *)s1 - *(const __nbrune_t *)--s2);
+ return (*(const rune_t *)s1 - *(const rune_t *)--s2);
}