summaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall/mbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/sysinstall/mbr.c')
-rw-r--r--sbin/sysinstall/mbr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/sysinstall/mbr.c b/sbin/sysinstall/mbr.c
index c7640da..3199198 100644
--- a/sbin/sysinstall/mbr.c
+++ b/sbin/sysinstall/mbr.c
@@ -200,9 +200,10 @@ build_mbr(struct mbr *mbr, char *bootcode, struct disklabel *lb)
dp->dp_ehd = lb->d_ntracks - 1;
dp->dp_esect = lb->d_nsectors;
dp->dp_start = (dp->dp_scyl * lb->d_ntracks * lb->d_nsectors) +
- (dp->dp_shd * lb->d_nsectors) +
- dp->dp_ssect - 1;
- dp->dp_size = (lb->d_nsectors * lb->d_ntracks * lb->d_ncylinders) - dp->dp_start;
+ (dp->dp_shd * lb->d_nsectors) +
+ dp->dp_ssect - 1;
+ dp->dp_size = (lb->d_nsectors * lb->d_ntracks * lb->d_ncylinders) -
+ dp->dp_start;
}
/* Validate partition - XXX need to spend some time making this robust */
OpenPOWER on IntegriCloud