Searched hist:"3 e9b7d6b" (Results 1 – 5 of 5) sorted by relevance
/openbsd/sbin/fdisk/ |
H A D | misc.h | 3e9b7d6b Mon Sep 13 15:07:51 GMT 2021 krw <krw@openbsd.org> 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.
|
H A D | disk.c | 3e9b7d6b Mon Sep 13 15:07:51 GMT 2021 krw <krw@openbsd.org> 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.
|
H A D | misc.c | 3e9b7d6b Mon Sep 13 15:07:51 GMT 2021 krw <krw@openbsd.org> 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.
|
H A D | gpt.c | 3e9b7d6b Mon Sep 13 15:07:51 GMT 2021 krw <krw@openbsd.org> 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.
|
H A D | part.c | 3e9b7d6b Mon Sep 13 15:07:51 GMT 2021 krw <krw@openbsd.org> 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.
|