# HG changeset patch # User Paul Eggert # Date 1063062972 0 # Node ID ceebc07ec450490ae21562c9fb986d8995c1021a # Parent 74b0d8b988f725e2fa465f0a1b4be34f792718ef Include . (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'. diff --git a/lib/bcopy.c b/lib/bcopy.c --- a/lib/bcopy.c +++ b/lib/bcopy.c @@ -3,11 +3,13 @@ In the public domain. By David MacKenzie . */ +#include + void -bcopy (source, dest, length) - char *source, *dest; - unsigned length; +bcopy (void const *source0, void *dest0, size_t length) { + char const *source = source0; + char *dest = dest0; if (source < dest) /* Moving from low mem to hi mem; start at end. */ for (source += length, dest += length; length; --length)