Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/bebox/stand/boot Cast KERNENTRY into a char * befor...
details: https://anonhg.NetBSD.org/src/rev/b6f1994837ed
branches: trunk
changeset: 546108:b6f1994837ed
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sun Apr 20 18:17:07 2003 +0000
description:
Cast KERNENTRY into a char * before doing arithmetic on it, so we don't end
up trying to cast a 64-bit integer into a pointer, which GCC warns about.
diffstat:
sys/arch/bebox/stand/boot/inkernel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 8cc22da15d69 -r b6f1994837ed sys/arch/bebox/stand/boot/inkernel.c
--- a/sys/arch/bebox/stand/boot/inkernel.c Sun Apr 20 17:58:28 2003 +0000
+++ b/sys/arch/bebox/stand/boot/inkernel.c Sun Apr 20 18:17:07 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inkernel.c,v 1.3 1999/06/28 01:20:44 sakamoto Exp $ */
+/* $NetBSD: inkernel.c,v 1.4 2003/04/20 18:17:07 bjh21 Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
size_t *rsize; /* bytes transferred */
{
- memcpy(buf, (char *)(KERNENTRY + blk * DEV_BSIZE), size);
+ memcpy(buf, (char *)KERNENTRY + blk * DEV_BSIZE, size);
*rsize = size;
return (0);
}
Home |
Main Index |
Thread Index |
Old Index