summaryrefslogtreecommitdiffstats
path: root/sbin/fdisk_pc98
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-30 19:58:54 +0000
committerpfg <pfg@FreeBSD.org>2016-04-30 19:58:54 +0000
commit0fa2691ba864bf22d56e8177a7357d545d869066 (patch)
tree20ab9c25a7d5662c51cdbdfaaa285b2f62c7eedd /sbin/fdisk_pc98
parent057f4169cad40be5e286183916f21a82ac5f1069 (diff)
downloadFreeBSD-src-0fa2691ba864bf22d56e8177a7357d545d869066.zip
FreeBSD-src-0fa2691ba864bf22d56e8177a7357d545d869066.tar.gz
fdisk: drop unused macro and make use of roundup()/rounddown().
Diffstat (limited to 'sbin/fdisk_pc98')
-rw-r--r--sbin/fdisk_pc98/fdisk.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/fdisk_pc98/fdisk.c b/sbin/fdisk_pc98/fdisk.c
index 8196d85..7b84053 100644
--- a/sbin/fdisk_pc98/fdisk.c
+++ b/sbin/fdisk_pc98/fdisk.c
@@ -63,8 +63,6 @@ static char lbuf[LBUF];
#define Decimal(str, ans, tmp) if (decimal(str, &tmp, ans)) ans = tmp
#define String(str, ans, len) {char *z = ans; char **dflt = &z; if (string(str, dflt)) strncpy(ans, *dflt, len); }
-#define RoundCyl(x) ((((x) + cylsecs - 1) / cylsecs) * cylsecs)
-
#define MAX_SEC_SIZE 2048 /* maximum section size that is supported */
#define MIN_SEC_SIZE 512 /* the sector size to start sensing at */
static int secsize = 0; /* the sensed sector size */
OpenPOWER on IntegriCloud