Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc memcpy -> memmove. Noted by Tsubai ...
details: https://anonhg.NetBSD.org/src/rev/679ec7f04879
branches: trunk
changeset: 513030:679ec7f04879
user: wiz <wiz%NetBSD.org@localhost>
date: Sun Jul 22 13:21:04 2001 +0000
description:
memcpy -> memmove. Noted by Tsubai Masanari.
diffstat:
sys/arch/powerpc/powerpc/ofw_machdep.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 4df621c1d5ef -r 679ec7f04879 sys/arch/powerpc/powerpc/ofw_machdep.c
--- a/sys/arch/powerpc/powerpc/ofw_machdep.c Sun Jul 22 13:08:09 2001 +0000
+++ b/sys/arch/powerpc/powerpc/ofw_machdep.c Sun Jul 22 13:21:04 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw_machdep.c,v 1.9 2001/07/22 11:29:46 wiz Exp $ */
+/* $NetBSD: ofw_machdep.c,v 1.10 2001/07/22 13:21:04 wiz Exp $ */
/*
* Copyright (C) 1996 Wolfgang Solfrank.
@@ -78,8 +78,8 @@
cnt /= sizeof OFmem[0];
for (i = 0; i < cnt; )
if (OFmem[i].size == 0) {
- memcpy(&OFmem[i], &OFmem[i + 1],
- (cnt - i) * sizeof OFmem[0]);
+ memmove(&OFmem[i], &OFmem[i + 1],
+ (cnt - i) * sizeof OFmem[0]);
cnt--;
} else
i++;
@@ -93,8 +93,8 @@
cnt /= sizeof OFavail[0];
for (i = 0; i < cnt; )
if (OFavail[i].size == 0) {
- memcpy(&OFavail[i], &OFavail[i + 1],
- (cnt - i) * sizeof OFavail[0]);
+ memmove(&OFavail[i], &OFavail[i + 1],
+ (cnt - i) * sizeof OFavail[0]);
cnt--;
} else
i++;
Home |
Main Index |
Thread Index |
Old Index