Consolidate disk geometry fiddling, turning -l/-c/-h/-s values into MBR
authorkrw <krw@openbsd.org>
Thu, 15 Jul 2021 21:23:54 +0000 (21:23 +0000)
committerkrw <krw@openbsd.org>
Thu, 15 Jul 2021 21:23:54 +0000 (21:23 +0000)
commitf9336ec7986e7c7d92b9f3649b98a4d29492aa26
tree578e3234d2cf88f9d18ded32e9817326fbfadb34
parent9b09261d8562e0d9066c06820396c4a6a5ce82c2
Consolidate disk geometry fiddling, turning -l/-c/-h/-s values into MBR
partition geometry info, into DISK_open(). Resulting in clearer logic.

No intentional functional change.
sbin/fdisk/disk.c
sbin/fdisk/disk.h
sbin/fdisk/fdisk.c