editor_resize(), editor_change(), editor_modify() and
authorkrw <krw@openbsd.org>
Sat, 21 Jan 2023 16:20:25 +0000 (16:20 +0000)
committerkrw <krw@openbsd.org>
Sat, 21 Jan 2023 16:20:25 +0000 (16:20 +0000)
commit78ff4c86183827eae600426daca47392e6a76eee
treead690a6f65671544b69730e45c619195ad1c5302
parent78843f4ef558416fa4bd7e0909fbe547e953d26d
editor_resize(), editor_change(), editor_modify() and
editor_name() use identical logic to choose a partition to act
on, with some minor verbiage differences.

Extract getpartno() to contain/tighten this logic and shrink the
editor_* functions by using it.

No intentional functional change but for verbiage tweaks.
sbin/disklabel/editor.c