# HG changeset patch # User Mychaela Falconia # Date 1477958731 0 # Node ID 9214118ae9414f800d251b75a11d7856017ed4e5 # Parent 5aff772ff84d25494ab02ddc1dd9c75085123114 target-utils: use of bcopy() changed to memcpy() diff -r 5aff772ff84d -r 9214118ae941 target-utils/libcommon/cmd_memdump_human.c --- a/target-utils/libcommon/cmd_memdump_human.c Mon Oct 31 23:55:28 2016 +0000 +++ b/target-utils/libcommon/cmd_memdump_human.c Tue Nov 01 00:05:31 2016 +0000 @@ -31,7 +31,7 @@ return; } for (offset = 0; offset < length; offset += 0x10) { - bcopy(start + offset, intbuf, 0x10); + memcpy(intbuf, start + offset, 0x10); printf("%08X: ", start + offset); for (i = 0; i < 16; i++) { printf("%02X ", intbuf[i]); diff -r 5aff772ff84d -r 9214118ae941 target-utils/libcommon/cmd_memdump_machine.c --- a/target-utils/libcommon/cmd_memdump_machine.c Mon Oct 31 23:55:28 2016 +0000 +++ b/target-utils/libcommon/cmd_memdump_machine.c Tue Nov 01 00:05:31 2016 +0000 @@ -36,7 +36,7 @@ srbuf[2] = addr >> 16; srbuf[3] = addr >> 8; srbuf[4] = addr; - bcopy(addr, srbuf + 5, 0x80); + memcpy(srbuf + 5, addr, 0x80); cksum = 0; for (i = 0; i < 0x85; i++) cksum += srbuf[i]; diff -r 5aff772ff84d -r 9214118ae941 target-utils/libload/cmd_memload.c --- a/target-utils/libload/cmd_memload.c Mon Oct 31 23:55:28 2016 +0000 +++ b/target-utils/libload/cmd_memload.c Tue Nov 01 00:05:31 2016 +0000 @@ -48,5 +48,5 @@ ((u32)srecbin[2] << 16) | ((u32)srecbin[3] << 8) | (u32)srecbin[4]; - bcopy(srecbin + 5, addr, len); + memcpy(addr, srecbin + 5, len); } diff -r 5aff772ff84d -r 9214118ae941 target-utils/libtiffs/rdinmem.c --- a/target-utils/libtiffs/rdinmem.c Mon Oct 31 23:55:28 2016 +0000 +++ b/target-utils/libtiffs/rdinmem.c Tue Nov 01 00:05:31 2016 +0000 @@ -21,7 +21,7 @@ return(-1); } real_len = chunk_size; - bcopy(chunk_start, buf, chunk_size); + memcpy(buf, chunk_start, chunk_size); buf += chunk_size; roomleft = maxlen - chunk_size; while (cont) { @@ -32,7 +32,7 @@ if (chunk_size > roomleft) goto toobig; real_len += chunk_size; - bcopy(chunk_start, buf, chunk_size); + memcpy(buf, chunk_start, chunk_size); buf += chunk_size; roomleft -= chunk_size; }