summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/wcscmp.c
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2005-06-19 22:12:07 +0000
committerespie <espie@openbsd.org>2005-06-19 22:12:07 +0000
commit1c031cf62e216db155a07bad4d48b1226f6cd6e5 (patch)
tree53341afeb32c1bb268d648e60afd1e55e19a72bf /lib/libc/string/wcscmp.c
parentUpdate to sudo 1.6.8p9 (diff)
downloadwireguard-openbsd-1c031cf62e216db155a07bad4d48b1226f6cd6e5.tar.xz
wireguard-openbsd-1c031cf62e216db155a07bad4d48b1226f6cd6e5.zip
K&R -> ANSI
APIWARN okay millert@, otto@
Diffstat (limited to 'lib/libc/string/wcscmp.c')
-rw-r--r--lib/libc/string/wcscmp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libc/string/wcscmp.c b/lib/libc/string/wcscmp.c
index 0f0dc0efdf9..d8a9aa73fb1 100644
--- a/lib/libc/string/wcscmp.c
+++ b/lib/libc/string/wcscmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $ */
+/* $OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 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.1 2005/04/13 16:35:58 espie Exp $";
+static char *rcsid = "$OpenBSD: wcscmp.c,v 1.2 2005/06/19 22:12:07 espie Exp $";
#endif /* LIBC_SCCS and not lint */
#include <wchar.h>
@@ -44,8 +44,7 @@ static char *rcsid = "$OpenBSD: wcscmp.c,v 1.1 2005/04/13 16:35:58 espie Exp $";
* Compare strings.
*/
int
-wcscmp(s1, s2)
- const wchar_t *s1, *s2;
+wcscmp(const wchar_t *s1, const wchar_t *s2)
{
while (*s1 == *s2++)