summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/bcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/bcmp.c')
-rw-r--r--src/lib/libc/string/bcmp.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libc/string/bcmp.c b/src/lib/libc/string/bcmp.c
index 8dc8798f25..07d32ed043 100644
--- a/src/lib/libc/string/bcmp.c
+++ b/src/lib/libc/string/bcmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bcmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $ */ 1/* $OpenBSD: bcmp.c,v 1.7 2005/03/30 20:13:52 otto Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1987 Regents of the University of California. 4 * Copyright (c) 1987 Regents of the University of California.
@@ -30,7 +30,7 @@
30 */ 30 */
31 31
32#if defined(LIBC_SCCS) && !defined(lint) 32#if defined(LIBC_SCCS) && !defined(lint)
33static char *rcsid = "$OpenBSD: bcmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $"; 33static char *rcsid = "$OpenBSD: bcmp.c,v 1.7 2005/03/30 20:13:52 otto Exp $";
34#endif /* LIBC_SCCS and not lint */ 34#endif /* LIBC_SCCS and not lint */
35 35
36#if !defined(_KERNEL) && !defined(_STANDALONE) 36#if !defined(_KERNEL) && !defined(_STANDALONE)
@@ -43,11 +43,9 @@ static char *rcsid = "$OpenBSD: bcmp.c,v 1.6 2004/11/28 07:16:54 mickey Exp $";
43 * bcmp -- vax cmpc3 instruction 43 * bcmp -- vax cmpc3 instruction
44 */ 44 */
45int 45int
46bcmp(b1, b2, length) 46bcmp(const void *b1, const void *b2, size_t length)
47 const void *b1, *b2;
48 register size_t length;
49{ 47{
50 register char *p1, *p2; 48 char *p1, *p2;
51 49
52 if (length == 0) 50 if (length == 0)
53 return(0); 51 return(0);