Use getpartno() in editor_add(), enhancing getpartno() to find
authorkrw <krw@openbsd.org>
Tue, 24 Jan 2023 15:47:10 +0000 (15:47 +0000)
committerkrw <krw@openbsd.org>
Tue, 24 Jan 2023 15:47:10 +0000 (15:47 +0000)
commit96b465e97552d036671f73db51b3b0431374bf48
tree24d2d7b8c5d696475b5efbd8ab89dca911cb0b9f
parentbfee927a61d2eaa0450326b34ad113bc0613270a
Use getpartno() in editor_add(), enhancing getpartno() to find
the default partition and allow selection of partitions up to
MAXPARTITION.

No intentional functional change.
sbin/disklabel/editor.c