diff options
| author | Daniel Gerzo <danger@FreeBSD.org> | 2009-02-03 17:58:20 +0000 | 
|---|---|---|
| committer | Daniel Gerzo <danger@FreeBSD.org> | 2009-02-03 17:58:20 +0000 | 
| commit | bd604b4b064135e661660c045cd31145e2e4ce71 (patch) | |
| tree | c5d6de4ed720c8bb5b4d132f30cd8fbd28bbeb81 /lib/libc/string/wcscmp.c | |
| parent | 23ee18767ede4614aedbe8645e896f0194f3500c (diff) | |
Notes
Diffstat (limited to 'lib/libc/string/wcscmp.c')
| -rw-r--r-- | lib/libc/string/wcscmp.c | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/string/wcscmp.c b/lib/libc/string/wcscmp.c index 59c3eefb2e47..2d489149d066 100644 --- a/lib/libc/string/wcscmp.c +++ b/lib/libc/string/wcscmp.c @@ -45,12 +45,11 @@ __FBSDID("$FreeBSD$");   * Compare strings.   */  int -wcscmp(s1, s2) -	const wchar_t *s1, *s2; +wcscmp(const wchar_t *s1, const wchar_t *s2)  {  	while (*s1 == *s2++) -		if (*s1++ == 0) +		if (*s1++ == '\0')  			return (0);  	/* XXX assumes wchar_t = int */  	return (*(const unsigned int *)s1 - *(const unsigned int *)--s2);  | 
