summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-14 00:46:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-14 00:46:46 +0000
commit1b4848cadba7515a0635d851d630007f70858907 (patch)
tree9b44a721dcb46a8d9b7492ce7c4e8a1f62129a49 /sys
parent25565935f360e25b81e549859be0ee4ae735de51 (diff)
RAW_PART
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arc/arc/disksubr.c4
-rw-r--r--sys/arch/i386/i386/disksubr.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/arc/arc/disksubr.c b/sys/arch/arc/arc/disksubr.c
index e1c185c5ba9..034f63be1f0 100644
--- a/sys/arch/arc/arc/disksubr.c
+++ b/sys/arch/arc/arc/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.6 1996/12/09 15:54:58 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.7 1997/01/14 00:46:42 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -409,7 +409,7 @@ bounds_check_with_label(bp, lp, wlabel)
int wlabel;
{
struct partition *p = lp->d_partitions + DISKPART(bp->b_dev);
- int labelsector = lp->d_partitions[2].p_offset + LABELSECTOR;
+ int labelsector = lp->d_partitions[RAW_PART].p_offset + LABELSECTOR;
int sz;
sz = howmany(bp->b_bcount, lp->d_secsize);
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c
index 8198bad893a..26cfdd13c28 100644
--- a/sys/arch/i386/i386/disksubr.c
+++ b/sys/arch/i386/i386/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.15 1996/12/09 15:54:57 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.16 1997/01/14 00:46:45 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -409,7 +409,7 @@ bounds_check_with_label(bp, lp, wlabel)
int wlabel;
{
struct partition *p = lp->d_partitions + DISKPART(bp->b_dev);
- int labelsector = lp->d_partitions[2].p_offset + LABELSECTOR;
+ int labelsector = lp->d_partitions[RAW_PART].p_offset + LABELSECTOR;
int sz;
sz = howmany(bp->b_bcount, lp->d_secsize);