diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-10 08:29:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-10 08:29:31 +0000 |
commit | a57cb0b077a90916ca251c098fc89cd20f33c232 (patch) | |
tree | 51e61c2404add0df42670fdae21d12cbc0f9d9bc /lib | |
parent | 3d82b922c123b835ac65e2c165a7057f7b378c0b (diff) | |
download | coreutils-a57cb0b077a90916ca251c098fc89cd20f33c232.tar.xz |
Include <stddef.h>.
(bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bcopy.c | 8 |
1 files changed, 5 insertions, 3 deletions
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 <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) |