summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-02 00:20:51 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-12-10 16:09:53 +0100
commit82a87d043498eeacb7e4f3edc85d1b7c424ea853 (patch)
tree60d3978b0722d23f01da47eb534ec6fa271b3ed8 /libstore
parent0a4ada8d40fb687a659161ff7e0d1d0994264402 (diff)
Replace `bcopy' with `memcpy' or `memmove' as appropriate
* ext2fs/inode.c: Replace `bcopy' with `memcpy' or `memmove' as appropriate. * ext2fs/pager.c: Likewise. * isofs/lookup.c: Likewise. * isofs/main.c: Likewise. * isofs/rr.c: Likewise. * libdiskfs/file-get-trans.c: Likewise. * libiohelp/return-buffer.c: Likewise. * libpager/pagemap.c: Likewise. * libpipe/pq.c: Likewise. * libpipe/pq.h: Likewise. * libstore/unzipstore.c: Likewise. * mach-defpager/default_pager.c: Likewise. * pfinet/ethernet.c: Likewise. * pfinet/tunnel.c: Likewise. * storeio/dev.c: Likewise.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/unzipstore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstore/unzipstore.c b/libstore/unzipstore.c
index 8d500c1b..cc86887e 100644
--- a/libstore/unzipstore.c
+++ b/libstore/unzipstore.c
@@ -81,7 +81,7 @@ unzip_store (struct store *from, void **buf, size_t *buf_len)
{
if (left > maxread)
left = maxread;
- bcopy (in_buf + in_buf_offs, buf, left);
+ memcpy (buf, in_buf + in_buf_offs, left);
in_buf_offs += left;
buf += left;
maxread -= left;
@@ -150,7 +150,7 @@ unzip_store (struct store *from, void **buf, size_t *buf_len)
if (out_buf_offs > 0)
/* Copy the old buffer into the start of the new & free it. */
- bcopy (old_buf, new_buf, out_buf_offs);
+ memcpy (new_buf, old_buf, out_buf_offs);
munmap (old_buf, old_buf_len);
@@ -160,7 +160,7 @@ unzip_store (struct store *from, void **buf, size_t *buf_len)
*buf_len = new_buf_len;
}
- bcopy (wbuf, *buf + out_buf_offs, nwrite);
+ memcpy (*buf + out_buf_offs, wbuf, nwrite);
out_buf_offs += nwrite;
}