diff options
author | 2007-05-31 22:31:04 +0000 | |
---|---|---|
committer | 2007-05-31 22:31:04 +0000 | |
commit | a7f13ab114e8a9721f94c49d1efc700050f5f12b (patch) | |
tree | 8a3adf8e0214b3a2408dfd6e0fd78b41323663cc | |
parent | Well, whatever the bug was, it does not seem to appear anymore. (diff) | |
download | wireguard-openbsd-a7f13ab114e8a9721f94c49d1efc700050f5f12b.tar.xz wireguard-openbsd-a7f13ab114e8a9721f94c49d1efc700050f5f12b.zip |
RAW_PART is defined to be 2 in vax (like elsewhere) so use it rather
than 2.
-rw-r--r-- | sys/arch/vax/vax/disksubr.c | 4 |
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; |