diff options
author | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-07-07 13:37:01 +0000 |
---|---|---|
committer | Dale S. Rahn <rahnds@cvs.openbsd.org> | 2000-07-07 13:37:01 +0000 |
commit | df3408d58a44b4279542e8ec20413f3f1b917643 (patch) | |
tree | 03d25a5a7ac7827e507425bb6a180adf9281af53 /sbin | |
parent | ca589f009b21755b46d6aeba250b031f0761de90 (diff) |
On the last commit to fdisk when the prototypes to PRT_fix_CHS and PRT_fix_BN
were made, some code in an ifdefed section was missed. Update that
section of code to have the appropriate added parameter.
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/fdisk/mbr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/fdisk/mbr.c b/sbin/fdisk/mbr.c index e3ebff06960..e5076e00cb7 100644 --- a/sbin/fdisk/mbr.c +++ b/sbin/fdisk/mbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbr.c,v 1.10 2000/07/01 21:49:12 mickey Exp $ */ +/* $OpenBSD: mbr.c,v 1.11 2000/07/07 13:37:00 rahnds Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -77,7 +77,7 @@ MBR_init(disk_t *disk, mbr_t *mbr) mbr->part[3].ns += mbr->part[3].bs; mbr->part[3].bs = mbr->part[0].bs + mbr->part[0].ns; mbr->part[3].ns -= mbr->part[3].bs; - PRT_fix_CHS(disk, &mbr->part[3]); + PRT_fix_CHS(disk, &mbr->part[3], 3); if ((mbr->part[3].shead != 1) || (mbr->part[3].ssect != 1)) { /* align the partition on a cylinder boundary */ mbr->part[3].shead = 0; @@ -85,7 +85,7 @@ MBR_init(disk_t *disk, mbr_t *mbr) mbr->part[3].scyl += 1; } /* Fix up start/length fields */ - PRT_fix_BN(disk, &mbr->part[3]); + PRT_fix_BN(disk, &mbr->part[3], 3); #endif } |