diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-23 15:24:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-23 15:24:08 +0000 |
commit | 28f64c37d06864b3cd81b57e0f80fe5e11694e71 (patch) | |
tree | b82228e70aba4a3532835fb0eaebcb71e0ae6184 /sys | |
parent | 5497c01aa326e105d3054220c3a7450a55e8f20d (diff) |
correct disklabel writing; from price
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/disksubr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 96fd3ece1ff..45b7634133e 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.10 1996/10/16 11:30:39 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.11 1996/10/23 15:24:07 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -318,7 +318,7 @@ writedisklabel(dev, strat, lp, osdep) struct buf *bp; struct disklabel *dlp; int error, dospartoff, cyl, i; - int ourpart; + int ourpart = -1; /* get a buffer and initialize it */ bp = geteblk((int)lp->d_secsize); @@ -356,8 +356,8 @@ writedisklabel(dev, strat, lp, osdep) * need sector address for SCSI/IDE, * cylinder for ESDI/ST506/RLL */ - dospartoff = dp->dp_start; - cyl = DPCYL(dp->dp_scyl, dp->dp_ssect); + dospartoff = dp2->dp_start; + cyl = DPCYL(dp2->dp_scyl, dp2->dp_ssect); } } |