summaryrefslogtreecommitdiff
path: root/common/lib/libc/string/strcmp.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2007-06-04 18:19:26 +0000
committerchristos <christos@NetBSD.org>2007-06-04 18:19:26 +0000
commita8565cf99b88ffe6143bc83dbb95eb10c476ce23 (patch)
treee91c2bc1334427d8e8a680abdbd68e88a49f9096 /common/lib/libc/string/strcmp.c
parent2219d66ee753e7e806b94d82a436684259184fbf (diff)
handle fortify, ansify.
Diffstat (limited to 'common/lib/libc/string/strcmp.c')
-rw-r--r--common/lib/libc/string/strcmp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/common/lib/libc/string/strcmp.c b/common/lib/libc/string/strcmp.c
index c7acebee474..e17aab2dbae 100644
--- a/common/lib/libc/string/strcmp.c
+++ b/common/lib/libc/string/strcmp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strcmp.c,v 1.1 2005/12/20 19:28:52 christos Exp $ */
+/* $NetBSD: strcmp.c,v 1.2 2007/06/04 18:19:27 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)strcmp.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strcmp.c,v 1.1 2005/12/20 19:28:52 christos Exp $");
+__RCSID("$NetBSD: strcmp.c,v 1.2 2007/06/04 18:19:27 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -52,8 +52,7 @@ __RCSID("$NetBSD: strcmp.c,v 1.1 2005/12/20 19:28:52 christos Exp $");
* Compare strings.
*/
int
-strcmp(s1, s2)
- const char *s1, *s2;
+strcmp(const char *s1, const char *s2)
{
_DIAGASSERT(s1 != NULL);