From 0469c254fbfd51776463de40cc29fc3bde8a6adb Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sat, 18 Nov 2000 02:55:43 +0000 Subject: [PATCH] Make the order of values prompted for with the "-i" option match print_part() --- sbin/fdisk/fdisk.c | 4 ++-- sbin/i386/fdisk/fdisk.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index cdf7315e2f6b..0cfe66ac150b 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -562,8 +562,8 @@ struct dos_partition *partp = ((struct dos_partition *) &mboot.parts) + i - 1; thd = partp->dp_shd; tsec = DPSECT(partp->dp_ssect); Decimal("beginning cylinder", tcyl, tmp); - Decimal("beginning head", thd, tmp); Decimal("beginning sector", tsec, tmp); + Decimal("beginning head", thd, tmp); partp->dp_scyl = DOSCYL(tcyl); partp->dp_ssect = DOSSECT(tsec,tcyl); partp->dp_shd = thd; @@ -572,8 +572,8 @@ struct dos_partition *partp = ((struct dos_partition *) &mboot.parts) + i - 1; thd = partp->dp_ehd; tsec = DPSECT(partp->dp_esect); Decimal("ending cylinder", tcyl, tmp); - Decimal("ending head", thd, tmp); Decimal("ending sector", tsec, tmp); + Decimal("ending head", thd, tmp); partp->dp_ecyl = DOSCYL(tcyl); partp->dp_esect = DOSSECT(tsec,tcyl); partp->dp_ehd = thd; diff --git a/sbin/i386/fdisk/fdisk.c b/sbin/i386/fdisk/fdisk.c index cdf7315e2f6b..0cfe66ac150b 100644 --- a/sbin/i386/fdisk/fdisk.c +++ b/sbin/i386/fdisk/fdisk.c @@ -562,8 +562,8 @@ struct dos_partition *partp = ((struct dos_partition *) &mboot.parts) + i - 1; thd = partp->dp_shd; tsec = DPSECT(partp->dp_ssect); Decimal("beginning cylinder", tcyl, tmp); - Decimal("beginning head", thd, tmp); Decimal("beginning sector", tsec, tmp); + Decimal("beginning head", thd, tmp); partp->dp_scyl = DOSCYL(tcyl); partp->dp_ssect = DOSSECT(tsec,tcyl); partp->dp_shd = thd; @@ -572,8 +572,8 @@ struct dos_partition *partp = ((struct dos_partition *) &mboot.parts) + i - 1; thd = partp->dp_ehd; tsec = DPSECT(partp->dp_esect); Decimal("ending cylinder", tcyl, tmp); - Decimal("ending head", thd, tmp); Decimal("ending sector", tsec, tmp); + Decimal("ending head", thd, tmp); partp->dp_ecyl = DOSCYL(tcyl); partp->dp_esect = DOSSECT(tsec,tcyl); partp->dp_ehd = thd;