Don't save the prt_scyl/prt_ecyl values, change them, use them
authorkrw <krw@openbsd.org>
Sun, 18 Jul 2021 21:40:13 +0000 (21:40 +0000)
committerkrw <krw@openbsd.org>
Sun, 18 Jul 2021 21:40:13 +0000 (21:40 +0000)
commit4f49024326629f0ae9fb54fc97a50936a0a0e815
treecf11024ef0245226cac30a5457932dc9e08c78a0
parent70a5362259ed76e5f2c4a4ea920fe713f2f990e6
Don't save the prt_scyl/prt_ecyl values, change them, use them
and then restore them. Just change/use the saved values and skip
the restoring.

Allows PRT_make() to add 'const' to its struct mbr parameter, and
thus allows MBR_make() to add 'const' to its struct mbr
parameter.

No intentional functional change.
sbin/fdisk/mbr.c
sbin/fdisk/mbr.h
sbin/fdisk/part.c
sbin/fdisk/part.h