summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/wcscmp.c
diff options
context:
space:
mode:
authorespie <>2005-06-19 22:12:07 +0000
committerespie <>2005-06-19 22:12:07 +0000
commitdd611c3aaf84a5329ce7642bf97e61f4fa7f2d65 (patch)
tree4449ef0e49aca9138958d50858c3ce50255544ca /src/lib/libc/string/wcscmp.c
parent7019160947103ed769aa02b61ad609c0822a53cc (diff)
downloadopenbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.tar.gz
openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.tar.bz2
openbsd-dd611c3aaf84a5329ce7642bf97e61f4fa7f2d65.zip
K&R -> ANSI
APIWARN okay millert@, otto@
Diffstat (limited to 'src/lib/libc/string/wcscmp.c')
-rw-r--r--src/lib/libc/string/wcscmp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/libc/string/wcscmp.c b/src/lib/libc/string/wcscmp.c
index 0f0dc0efdf..d8a9aa73fb 100644
--- a/src/lib/libc/string/wcscmp.c
+++ b/src/lib/libc/string/wcscmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */ 1/* $OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $ */
2/* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */ 2/* $NetBSD: wcscmp.c,v 1.5 2003/08/07 16:43:54 agc Exp $ */
3 3
4/*- 4/*-
@@ -34,7 +34,7 @@
34 */ 34 */
35 35
36#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
37static char *rcsid = "$OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $"; 37static char *rcsid = "$OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $";
38#endif /* LIBC_SCCS and not lint */ 38#endif /* LIBC_SCCS and not lint */
39 39
40#include <wchar.h> 40#include <wchar.h>
@@ -44,8 +44,7 @@ static char *rcsid = "$OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $";
44 * Compare strings. 44 * Compare strings.
45 */ 45 */
46int 46int
47wcscmp(s1, s2) 47wcscmp(const wchar_t *s1, const wchar_t *s2)
48 const wchar_t *s1, *s2;
49{ 48{
50 49
51 while (*s1 == *s2++) 50 while (*s1 == *s2++)