diff options
| author | 2005-03-30 20:13:52 +0000 | |
|---|---|---|
| committer | 2005-03-30 20:13:52 +0000 | |
| commit | a66ee1d5f2f446e8bcc27e705781cfe47cfcfe8b (patch) | |
| tree | 46498c6c87fbff4ce10ffcfa34199c65ceae8b49 /lib/libc/string/bcopy.c | |
| parent | sync (diff) | |
| download | wireguard-openbsd-a66ee1d5f2f446e8bcc27e705781cfe47cfcfe8b.tar.xz wireguard-openbsd-a66ee1d5f2f446e8bcc27e705781cfe47cfcfe8b.zip | |
ansify + deregister. no binary change on i386. ok deraadt@ pat@ moritz@
Diffstat (limited to 'lib/libc/string/bcopy.c')
| -rw-r--r-- | lib/libc/string/bcopy.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lib/libc/string/bcopy.c b/lib/libc/string/bcopy.c index c48faa145ef..7b30ab4abb9 100644 --- a/lib/libc/string/bcopy.c +++ b/lib/libc/string/bcopy.c @@ -31,7 +31,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: bcopy.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; +static char *rcsid = "$OpenBSD: bcopy.c,v 1.4 2005/03/30 20:13:52 otto Exp $"; #endif /* LIBC_SCCS and not lint */ #include <string.h> @@ -52,23 +52,20 @@ typedef long word; /* "word" used for optimal copy speed */ */ #ifdef MEMCOPY void * -memcpy(dst0, src0, length) +memcpy(void *dst0, const void *src0, size_t length) #else #ifdef MEMMOVE void * -memmove(dst0, src0, length) +memmove(void *dst0, const void *src0, size_t length) #else void -bcopy(src0, dst0, length) +bcopy(const void *src0, void *dst0, size_t length) #endif #endif - void *dst0; - const void *src0; - register size_t length; { - register char *dst = dst0; - register const char *src = src0; - register size_t t; + char *dst = dst0; + const char *src = src0; + size_t t; if (length == 0 || dst == src) /* nothing to do */ goto done; |
