summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2007-05-31 22:31:05 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2007-05-31 22:31:05 +0000
commitdaf3f68fb096b7119e1247ac8e9492fd125045af (patch)
treeafeb1a213a3511925866213193b202689e2b310a /sys/arch/vax
parent8fff6a4134760402bb8d8b7e5d3fd7080a440638 (diff)
RAW_PART is defined to be 2 in vax (like elsewhere) so use it rather
than 2.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vax/disksubr.c4
1 files changed, 2 insertions, 2 deletions
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;