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/bzero.c | |
parent | oops (diff) | |
download | wireguard-openbsd-86b54bb2dc6aec91522eca6d443b842bd4bd9342.tar.xz wireguard-openbsd-86b54bb2dc6aec91522eca6d443b842bd4bd9342.zip |
ansification; pval ok
Diffstat (limited to 'lib/libc/string/bzero.c')
-rw-r--r-- | lib/libc/string/bzero.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libc/string/bzero.c b/lib/libc/string/bzero.c index 20a6a53808c..7e557ecd4a8 100644 --- a/lib/libc/string/bzero.c +++ b/lib/libc/string/bzero.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: bzero.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; +static char *rcsid = "$OpenBSD: bzero.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #ifndef _KERNEL @@ -41,11 +41,9 @@ static char *rcsid = "$OpenBSD: bzero.c,v 1.4 2003/06/02 20:18:38 millert Exp $" * bzero -- vax movc5 instruction */ void -bzero(b, length) - void *b; - register size_t length; +bzero(void *b, size_t length) { - register char *p; + char *p; for (p = b; length--;) *p++ = '\0'; |