summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/bzero.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/bzero.c')
-rw-r--r--src/lib/libc/string/bzero.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libc/string/bzero.c b/src/lib/libc/string/bzero.c
index 20a6a53808..7e557ecd4a 100644
--- a/src/lib/libc/string/bzero.c
+++ b/src/lib/libc/string/bzero.c
@@ -28,7 +28,7 @@
28 */ 28 */
29 29
30#if defined(LIBC_SCCS) && !defined(lint) 30#if defined(LIBC_SCCS) && !defined(lint)
31static char *rcsid = "$OpenBSD: bzero.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; 31static char *rcsid = "$OpenBSD: bzero.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $";
32#endif /* LIBC_SCCS and not lint */ 32#endif /* LIBC_SCCS and not lint */
33 33
34#ifndef _KERNEL 34#ifndef _KERNEL
@@ -41,11 +41,9 @@ static char *rcsid = "$OpenBSD: bzero.c,v 1.4 2003/06/02 20:18:38 millert Exp $"
41 * bzero -- vax movc5 instruction 41 * bzero -- vax movc5 instruction
42 */ 42 */
43void 43void
44bzero(b, length) 44bzero(void *b, size_t length)
45 void *b;
46 register size_t length;
47{ 45{
48 register char *p; 46 char *p;
49 47
50 for (p = b; length--;) 48 for (p = b; length--;)
51 *p++ = '\0'; 49 *p++ = '\0';