diff options
author | 2004-08-07 00:38:32 +0000 | |
---|---|---|
committer | 2004-08-07 00:38:32 +0000 | |
commit | a26aa41994e8a6961f009870b31f84fec938f9c8 (patch) | |
tree | b69a5bc2e1eeaca538d3783d02cfd53f88cb19db /sys/lib/libkern/memcmp.c | |
parent | sync (diff) | |
download | wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.tar.xz wireguard-openbsd-a26aa41994e8a6961f009870b31f84fec938f9c8.zip |
ansi and some missing protos
Diffstat (limited to 'sys/lib/libkern/memcmp.c')
-rw-r--r-- | sys/lib/libkern/memcmp.c | 10 |
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++) |