Home
last modified time | relevance | path

Searched hist:"3 e9b7d6b" (Results 1 – 5 of 5) sorted by relevance

/openbsd/sbin/fdisk/
H A Dmisc.h3e9b7d6b 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 Ddisk.c3e9b7d6b 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 Dmisc.c3e9b7d6b 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 Dgpt.c3e9b7d6b 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 Dpart.c3e9b7d6b 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.