An MBR knows (mbr_lba_self) where it is supposed to go, no
authorkrw <krw@openbsd.org>
Mon, 19 Jul 2021 19:23:50 +0000 (19:23 +0000)
committerkrw <krw@openbsd.org>
Mon, 19 Jul 2021 19:23:50 +0000 (19:23 +0000)
commite79775db65e138c6818b055d4fab040a4ebdef04
tree2ba70f044f9a724de7e91bc19ecd9d1f4f0d2a45
parent8ee934e7b7777b67ac1e51a1f65138456b4e076a
An MBR knows (mbr_lba_self) where it is supposed to go, no
need to pass the value to MBR_write().

Let MBR_write() do the translation from struct mbr to the
struct dos_mbr that will be written to the disk. Thus
eliminating unnecessary struct dos_mbr variables and the
parsing thereof.

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