summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-14 03:29:35 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-14 03:29:35 +0000
commit4c6abb7bc0e382a4196ec4b0e38dff800b1631df (patch)
tree13d4701745f7fcc5b3095d51ecb98d41c8f9c656 /sys/arch/sparc64
parent096f1fa7d8139f8469e269112fb4efa6602528bd (diff)
do not depend on previous loop variable, use a constant instead
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/disksubr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/disksubr.c b/sys/arch/sparc64/sparc64/disksubr.c
index 7ab32acc3e0..0b508af27d7 100644
--- a/sys/arch/sparc64/sparc64/disksubr.c
+++ b/sys/arch/sparc64/sparc64/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.38 2007/06/12 20:57:43 deraadt Exp $ */
+/* $OpenBSD: disksubr.c,v 1.39 2007/06/14 03:29:34 deraadt Exp $ */
/* $NetBSD: disksubr.c,v 1.13 2000/12/17 22:39:18 pk Exp $ */
/*
@@ -89,9 +89,9 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *),
DL_SETPSIZE(&lp->d_partitions[i], 0);
DL_SETPOFFSET(&lp->d_partitions[i], 0);
}
- if (DL_GETPSIZE(&lp->d_partitions[i]) == 0)
- DL_SETPSIZE(&lp->d_partitions[i], DL_GETDSIZE(lp));
- DL_SETPOFFSET(&lp->d_partitions[i], 0);
+ if (DL_GETPSIZE(&lp->d_partitions[RAW_PART]) == 0)
+ DL_SETPSIZE(&lp->d_partitions[RAW_PART], DL_GETDSIZE(lp));
+ DL_SETPOFFSET(&lp->d_partitions[RAW_PART], 0);
lp->d_bbsize = 8192;
lp->d_sbsize = 64*1024; /* XXX ? */