Convert the internal GPT partition entries into host-endian form
authorkrw <krw@openbsd.org>
Thu, 28 Apr 2022 13:22:19 +0000 (13:22 +0000)
committerkrw <krw@openbsd.org>
Thu, 28 Apr 2022 13:22:19 +0000 (13:22 +0000)
commit2de775601c70b5ce2bdcf4b3536b6cc3ffb4b7e4
tree79e2ff5d10857ed34df3d43dfeac41c8bd096766
parent3df256674017943ef30e901b4801bf604575f780
Convert the internal GPT partition entries into host-endian form
on input/initialization and back to little-endian when writing to
disk.

Easier to read the code when letoh*() and uuid_[enc|dec]_*
invocations are minimized.

No intentional functional change.

ok jmatthew@
sbin/fdisk/cmd.c
sbin/fdisk/gpt.c
sbin/fdisk/part.c