Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/vax/boot/xxboot/bootxx.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/vax/boot/xxboot/bootxx.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.23.6.1 retrieving revision 1.23.6.2 diff -u -p -r1.23.6.1 -r1.23.6.2 --- src/sys/arch/vax/boot/xxboot/bootxx.c 2006/03/13 09:07:03 1.23.6.1 +++ src/sys/arch/vax/boot/xxboot/bootxx.c 2006/06/26 12:45:40 1.23.6.2 @@ -1,4 +1,4 @@ -/* $NetBSD: bootxx.c,v 1.23.6.1 2006/03/13 09:07:03 yamt Exp $ */ +/* $NetBSD: bootxx.c,v 1.23.6.2 2006/06/26 12:45:40 yamt Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -278,6 +278,9 @@ romstrategy(sc, func, dblk, size, buf, r { int block = dblk; int nsize = size; + char *cbuf; + + cbuf = (char *)buf; if (romlabel.d_magic == DISKMAGIC && romlabel.d_magic2 == DISKMAGIC) { if (romlabel.d_npartitions > 1) { @@ -289,16 +292,16 @@ romstrategy(sc, func, dblk, size, buf, r } if (from == FROMMV) { - romread_uvax(block, size, buf, rpb); + romread_uvax(block, size, cbuf, rpb); } else /* if (from == FROM750) */ { while (size > 0) { if (rpb->devtyp == BDEV_HP) hpread(block); else read750(block, bootregs); - bcopy(0, buf, 512); + bcopy(0, cbuf, 512); size -= 512; - (char *)buf += 512; + cbuf += 512; block++; } }