From daf3f68fb096b7119e1247ac8e9492fd125045af Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Thu, 31 May 2007 22:31:05 +0000 Subject: RAW_PART is defined to be 2 in vax (like elsewhere) so use it rather than 2. --- sys/arch/vax/vax/disksubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/vax') diff --git a/sys/arch/vax/vax/disksubr.c b/sys/arch/vax/vax/disksubr.c index 7cf058206cf..dce0ad98bae 100644 --- a/sys/arch/vax/vax/disksubr.c +++ b/sys/arch/vax/vax/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.37 2007/05/31 22:06:03 krw Exp $ */ +/* $OpenBSD: disksubr.c,v 1.38 2007/05/31 22:31:04 krw Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1999/06/30 18:48:06 ragge Exp $ */ /* @@ -60,7 +60,7 @@ bounds_check_with_label(struct buf *bp, struct disklabel *lp, struct cpu_disklabel *osdep, int wlabel) { struct partition *p = lp->d_partitions + DISKPART(bp->b_dev); - int labelsector = lp->d_partitions[2].p_offset; + int labelsector = lp->d_partitions[RAW_PART].p_offset; int maxsz = p->p_size, sz = (bp->b_bcount + DEV_BSIZE - 1) >> DEV_BSHIFT; -- cgit v1.2.3