CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2021/09/13 09:07:51
Modified files:
sbin/fdisk : disk.c gpt.c misc.c misc.h part.c
Log message:
disk.dk_size can't be 0 as we errx() if that happens during
DISK_open(). So eliminate pointless check when printing geometry.
Replace unit_lookup() with units_size(), reducing four
conversion dances to one. Return pointer to the unit_type used in
the conversion. unit_types[] is now needed only in misc.c.
Fewer variables make for cleaner logic.
No intentional functional change.