Abstract init_gh() and init_gp() from GPT_init().
authorkrw <krw@openbsd.org>
Sat, 12 Jun 2021 17:49:00 +0000 (17:49 +0000)
committerkrw <krw@openbsd.org>
Sat, 12 Jun 2021 17:49:00 +0000 (17:49 +0000)
commit4b0ba6cc4813ad9be914e436fcbec3e6686485b9
tree261fd0135bbe1bc6725060cd6ecc54938964b4f6
parent032115fc27090a8079fb08b732d1d3afe5312aa4
Abstract init_gh() and init_gp() from GPT_init().

Restore original gh/gp if initialization fails.

No other functional change.
sbin/fdisk/gpt.c