X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fbcopy.c;h=50a09f876447f0ac7dd483f626cb62990cdc091b;hb=c3de829c6f94be07b6104c5403d070791fc516fb;hp=a8991c570dc99252337c0fcb9bf70440fffe4d41;hpb=87e2683e04a8ef7d18ea8f515e65d8885e5a2355;p=gnulib.git diff --git a/lib/bcopy.c b/lib/bcopy.c index a8991c570..50a09f876 100644 --- 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)