Simpify code manipulating GPT partition names by coalescing
authorkrw <krw@openbsd.org>
Wed, 20 Apr 2022 15:49:56 +0000 (15:49 +0000)
committerkrw <krw@openbsd.org>
Wed, 20 Apr 2022 15:49:56 +0000 (15:49 +0000)
commita66d82b084937fce15804f42f3d8167e536cfcb6
tree3bf94124e6d7f141cdd3cdb2695dc2f9d2dcac69
parentbdbde0472c67f261f8c9269e0b803edc4d2c77aa
Simpify code manipulating GPT partition names by coalescing
logic into GPT_get_name(), string_to_name() and name_to_string()
functions. Remove unnecessarily abstract functions ask_string(),
utf16le_to_string() and string_to_utf16le().

No intentional functional change.
sbin/fdisk/cmd.c
sbin/fdisk/gpt.c
sbin/fdisk/misc.c
sbin/fdisk/misc.h