summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-11-18 02:55:43 +0000
committerobrien <obrien@FreeBSD.org>2000-11-18 02:55:43 +0000
commit463fa1112a519653d3fc6a04afc90a7e8790fdce (patch)
tree2e99438856c5e57aa62a5782b90cd599cf93cffc /sbin/fdisk
parentd1e0950f7e70c0eb7a93ac58503f1e89ff6a51f5 (diff)
downloadFreeBSD-src-463fa1112a519653d3fc6a04afc90a7e8790fdce.zip
FreeBSD-src-463fa1112a519653d3fc6a04afc90a7e8790fdce.tar.gz
Make the order of values prompted for with the "-i" option match print_part()
Diffstat (limited to 'sbin/fdisk')
-rw-r--r--sbin/fdisk/fdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index cdf7315..0cfe66a 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;
OpenPOWER on IntegriCloud