summaryrefslogtreecommitdiff
path: root/sys/lib/libkern/memcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lib/libkern/memcmp.c')
-rw-r--r--sys/lib/libkern/memcmp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/lib/libkern/memcmp.c b/sys/lib/libkern/memcmp.c
index 5fe351261f3..3a4bb91c18c 100644
--- a/sys/lib/libkern/memcmp.c
+++ b/sys/lib/libkern/memcmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: memcmp.c,v 1.3 2003/06/02 23:28:08 millert Exp $ */
+/* $OpenBSD: memcmp.c,v 1.4 2004/08/07 00:38:32 deraadt Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -33,7 +33,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: memcmp.c,v 1.3 2003/06/02 23:28:08 millert Exp $";
+static char *rcsid = "$OpenBSD: memcmp.c,v 1.4 2004/08/07 00:38:32 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#if !defined(_KERNEL) && !defined(_STANDALONE)
@@ -46,12 +46,10 @@ static char *rcsid = "$OpenBSD: memcmp.c,v 1.3 2003/06/02 23:28:08 millert 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)
{
if (n != 0) {
- register const unsigned char *p1 = s1, *p2 = s2;
+ const unsigned char *p1 = s1, *p2 = s2;
do {
if (*p1++ != *p2++)