stand: userboot_fmtdev can be reduced to devformat
authorWarner Losh <imp@FreeBSD.org>
Thu, 11 Aug 2022 15:08:26 +0000 (09:08 -0600)
committerWarner Losh <imp@FreeBSD.org>
Thu, 11 Aug 2022 16:27:17 +0000 (10:27 -0600)
commit1e9b23448a3010e8403eae08ad890fe1eb75da8b
treec02d4e5e7205c2ea7c9e0e15c12c83b0f237d3b8
parent1e7a2eb93a527a2f4b22be66788caf50e4ba1f89
stand: userboot_fmtdev can be reduced to devformat

devformat produces the same output as userboot_fmtdev, so just use it to
reduce on the dependencies. In addition, we don't need to use the
incomplete struct userboot_devdesc type, we can use struct devdesc
instead (in fact, there's no userboot_devdesc defined anywhere).

Sponsored by: Netflix
Reviewed by: jhb (prior version)
Differential Revision: https://reviews.freebsd.org/D35925
stand/userboot/userboot/bootinfo32.c
stand/userboot/userboot/bootinfo64.c
stand/userboot/userboot/devicename.c
stand/userboot/userboot/libuserboot.h
stand/userboot/userboot/main.c