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 Appease GCC's warning after daddr_t...



details:   https://anonhg.NetBSD.org/src/rev/c48de6c96c29
branches:  trunk
changeset: 542358:c48de6c96c29
user:      kleink <kleink%NetBSD.org@localhost>
date:      Mon Jan 27 01:39:36 2003 +0000

description:
Appease GCC's warning after daddr_t having changed to 64 bits.

diffstat:

 sys/arch/prep/stand/boot/inkernel.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 6d4da307b8e5 -r c48de6c96c29 sys/arch/prep/stand/boot/inkernel.c
--- a/sys/arch/prep/stand/boot/inkernel.c       Mon Jan 27 01:34:09 2003 +0000
+++ b/sys/arch/prep/stand/boot/inkernel.c       Mon Jan 27 01:39:36 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inkernel.c,v 1.1 2000/02/29 15:21:51 nonaka Exp $      */
+/*     $NetBSD: inkernel.c,v 1.2 2003/01/27 01:39:36 kleink 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 + (blk * DEV_BSIZE), size);
        *rsize = size;
        return (0);
 }



Home | Main Index | Thread Index | Old Index