summaryrefslogtreecommitdiff
path: root/libpager
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 /libpager
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 'libpager')
-rw-r--r--libpager/pagemap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpager/pagemap.c b/libpager/pagemap.c
index b8b3362c..963f6567 100644
--- a/libpager/pagemap.c
+++ b/libpager/pagemap.c
@@ -36,7 +36,7 @@ _pager_pagemap_resize (struct pager *p, vm_address_t off)
err = (newaddr == (void *) -1) ? errno : 0;
if (! err)
{
- bcopy (p->pagemap, newaddr, p->pagemapsize * sizeof (*p->pagemap));
+ memcpy (newaddr, p->pagemap, p->pagemapsize * sizeof (*p->pagemap));
munmap (p->pagemap, p->pagemapsize * sizeof (*p->pagemap));
p->pagemap = newaddr;
p->pagemapsize = newsize;