summaryrefslogtreecommitdiff
path: root/common/lib/libc/string/memcmp.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/memcmp.c
parent2219d66ee753e7e806b94d82a436684259184fbf (diff)
handle fortify, ansify.
Diffstat (limited to 'common/lib/libc/string/memcmp.c')
-rw-r--r--common/lib/libc/string/memcmp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/common/lib/libc/string/memcmp.c b/common/lib/libc/string/memcmp.c
index a155da43537..12880486b35 100644
--- a/common/lib/libc/string/memcmp.c
+++ b/common/lib/libc/string/memcmp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: memcmp.c,v 1.1 2005/12/20 19:28:52 christos Exp $ */
+/* $NetBSD: memcmp.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[] = "@(#)memcmp.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: memcmp.c,v 1.1 2005/12/20 19:28:52 christos Exp $");
+__RCSID("$NetBSD: memcmp.c,v 1.2 2007/06/04 18:19:27 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -52,9 +52,7 @@ __RCSID("$NetBSD: memcmp.c,v 1.1 2005/12/20 19:28:52 christos Exp $");
* Compare memory regions.
*/
int
-memcmp(s1, s2, n)
- const void *s1, *s2;
- size_t n;
+memcmp(const void *s1, const void *s2, size_t n)
{
_DIAGASSERT(s1 != 0);
_DIAGASSERT(s2 != 0);