Include <stddef.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Sep 2003 23:16:12 +0000 (23:16 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 8 Sep 2003 23:16:12 +0000 (23:16 +0000)
(bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.

lib/bcopy.c

index a8991c5..50a09f8 100644 (file)
@@ -3,11 +3,13 @@
    In the public domain.
    By David MacKenzie <djm@gnu.ai.mit.edu>.  */
 
+#include <stddef.h>
+
 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)