Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/prep/stand/boot Cast daddr_t to long so to avoid
details: https://anonhg.NetBSD.org/src/rev/fa85d7402fc7
branches: trunk
changeset: 542463:fa85d7402fc7
user: matt <matt%NetBSD.org@localhost>
date: Thu Jan 30 00:36:32 2003 +0000
description:
Cast daddr_t to long so to avoid
"cast to pointer from integer of different size" warning.
diffstat:
sys/arch/prep/stand/boot/inkernel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 7a1178c09d6b -r fa85d7402fc7 sys/arch/prep/stand/boot/inkernel.c
--- a/sys/arch/prep/stand/boot/inkernel.c Thu Jan 30 00:28:19 2003 +0000
+++ b/sys/arch/prep/stand/boot/inkernel.c Thu Jan 30 00:36:32 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inkernel.c,v 1.2 2003/01/27 01:39:36 kleink Exp $ */
+/* $NetBSD: inkernel.c,v 1.3 2003/01/30 00:36:32 matt Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
size_t *rsize; /* bytes transferred */
{
- memcpy(buf, (char *)KERNENTRY + (blk * DEV_BSIZE), size);
+ memcpy(buf, (char *)KERNENTRY + ((long)blk * DEV_BSIZE), size);
*rsize = size;
return (0);
}
Home |
Main Index |
Thread Index |
Old Index