changeset 99:9214118ae941

target-utils: use of bcopy() changed to memcpy()
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 01 Nov 2016 00:05:31 +0000
parents 5aff772ff84d
children d7ef80dce192
files target-utils/libcommon/cmd_memdump_human.c target-utils/libcommon/cmd_memdump_machine.c target-utils/libload/cmd_memload.c target-utils/libtiffs/rdinmem.c
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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]);
--- 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];
--- 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);
 }
--- 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;
 	}