summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcsncmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/wcsncmp.c')
-rw-r--r--src/lib/libc/string/wcsncmp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/string/wcsncmp.c b/src/lib/libc/string/wcsncmp.c
index aaa96b97a6..30d37f6657 100644
--- a/src/lib/libc/string/wcsncmp.c
+++ b/src/lib/libc/string/wcsncmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: wcsncmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */ 1/* $OpenBSD: wcsncmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $ */
2/* $NetBSD: wcsncmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ 2/* $NetBSD: wcsncmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */
3 3
4/* 4/*
@@ -31,7 +31,7 @@
31 */ 31 */
32 32
33#if defined(LIBC_SCCS) && !defined(lint) 33#if defined(LIBC_SCCS) && !defined(lint)
34static char *rcsid = "$OpenBSD: wcsncmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $"; 34static char *rcsid = "$OpenBSD: wcsncmp.c,v 1.3 2005/08/08 05:53:01 espie Exp $";
35#endif /* LIBC_SCCS and not lint */ 35#endif /* LIBC_SCCS and not lint */
36 36
37#include <wchar.h> 37#include <wchar.h>
@@ -46,8 +46,8 @@ wcsncmp(const wchar_t *s1, const wchar_t *s2, size_t n)
46 do { 46 do {
47 if (*s1 != *s2++) { 47 if (*s1 != *s2++) {
48 /* XXX assumes wchar_t = int */ 48 /* XXX assumes wchar_t = int */
49 return (*(const __nbrune_t *)s1 - 49 return (*(const rune_t *)s1 -
50 *(const __nbrune_t *)--s2); 50 *(const rune_t *)--s2);
51 } 51 }
52 if (*s1++ == 0) 52 if (*s1++ == 0)
53 break; 53 break;