diff options
author | 2003-06-11 21:08:16 +0000 | |
---|---|---|
committer | 2003-06-11 21:08:16 +0000 | |
commit | 86b54bb2dc6aec91522eca6d443b842bd4bd9342 (patch) | |
tree | 0e00cbd0851694ae7a727106329ae79a5c5bec59 /lib/libc/string/memcmp.c | |
parent | oops (diff) | |
download | wireguard-openbsd-86b54bb2dc6aec91522eca6d443b842bd4bd9342.tar.xz wireguard-openbsd-86b54bb2dc6aec91522eca6d443b842bd4bd9342.zip |
ansification; pval ok
Diffstat (limited to 'lib/libc/string/memcmp.c')
-rw-r--r-- | lib/libc/string/memcmp.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/string/memcmp.c b/lib/libc/string/memcmp.c index 4897001e74b..6c83208a7b4 100644 --- a/lib/libc/string/memcmp.c +++ b/lib/libc/string/memcmp.c @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: memcmp.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; +static char *rcsid = "$OpenBSD: memcmp.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <string.h> @@ -40,12 +40,10 @@ static char *rcsid = "$OpenBSD: memcmp.c,v 1.3 2003/06/02 20:18:38 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++) |