summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk_pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2002-10-07 10:04:07 +0000
committernyan <nyan@FreeBSD.org>2002-10-07 10:04:07 +0000
commitab9fa59b00ddcbf7220e0cce6bc78a173c637f56 (patch)
treec913ee415b612a305b02fa8c6441639b35270e8a /sbin/fdisk_pc98
parenta150732204107be0ccd2a633deb233ed2e99ec7d (diff)
downloadFreeBSD-src-ab9fa59b00ddcbf7220e0cce6bc78a173c637f56.zip
FreeBSD-src-ab9fa59b00ddcbf7220e0cce6bc78a173c637f56.tar.gz
Don't use DPCYL and DPSECT macros. These are not needed.
Submitted by: kawanobe@st.rim.or.jp (Kawanobe Koh)
Diffstat (limited to 'sbin/fdisk_pc98')
-rw-r--r--sbin/fdisk_pc98/fdisk.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/sbin/fdisk_pc98/fdisk.c b/sbin/fdisk_pc98/fdisk.c
index 4021a6c..4427454 100644
--- a/sbin/fdisk_pc98/fdisk.c
+++ b/sbin/fdisk_pc98/fdisk.c
@@ -551,11 +551,11 @@ print_part(int i)
partp->dp_flag == ACTIVE ? " (active)" : "");
#endif
printf("\tbeg: cyl %d/ sector %d/ head %d;\n\tend: cyl %d/ sector %d/ head %d\n"
- ,DPCYL(partp->dp_scyl, partp->dp_ssect)
- ,DPSECT(partp->dp_ssect)
+ ,partp->dp_scyl
+ ,partp->dp_ssect
,partp->dp_shd
- ,DPCYL(partp->dp_ecyl, partp->dp_esect)
- ,DPSECT(partp->dp_esect)
+ ,partp->dp_ecyl
+ ,partp->dp_esect
,partp->dp_ehd);
#ifdef PC98
printf ("\tsystem Name %.16s\n",partp->dp_name);
@@ -647,9 +647,9 @@ struct dos_partition *partp = ((struct dos_partition *) &mboot.parts) + i - 1;
if (ok("Explicitly specify beg/end address ?"))
{
int tsec,tcyl,thd;
- tcyl = DPCYL(partp->dp_scyl,partp->dp_ssect);
+ tcyl = partp->dp_scyl;
thd = partp->dp_shd;
- tsec = DPSECT(partp->dp_ssect);
+ tsec = partp->dp_ssect;
Decimal("beginning cylinder", tcyl, tmp);
Decimal("beginning head", thd, tmp);
Decimal("beginning sector", tsec, tmp);
@@ -662,9 +662,9 @@ struct dos_partition *partp = ((struct dos_partition *) &mboot.parts) + i - 1;
partp->dp_ipl_head = partp->dp_shd;
#endif
- tcyl = DPCYL(partp->dp_ecyl,partp->dp_esect);
+ tcyl = partp->dp_ecyl;
thd = partp->dp_ehd;
- tsec = DPSECT(partp->dp_esect);
+ tsec = partp->dp_esect;
Decimal("ending cylinder", tcyl, tmp);
Decimal("ending head", thd, tmp);
Decimal("ending sector", tsec, tmp);
OpenPOWER on IntegriCloud