stand: collapse all copies of *copyenv into md_copyenv
authorWarner Losh <imp@FreeBSD.org>
Fri, 16 Sep 2022 15:08:57 +0000 (09:08 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 16 Sep 2022 15:18:56 +0000 (09:18 -0600)
commitfc352701ff3aeb0af22c0da17c4194cf1f8ad5d0
tree5f8d6a29686525277c0bfee42be76b886dd1007e
parent2e6ed47a4609ff03a9308a173c64900485172c22
stand: collapse all copies of *copyenv into md_copyenv

Use the efi's bi_copyenv to md_copyenv and place it in modinfo.c. Remove
all other nearly identical and efi's has the best error handling.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D36574
12 files changed:
stand/common/metadata.c
stand/common/modinfo.c
stand/common/modinfo.h
stand/efi/loader/bootinfo.c
stand/i386/libi386/bootinfo.c
stand/i386/libi386/bootinfo32.c
stand/i386/libi386/bootinfo64.c
stand/i386/libi386/libi386.h
stand/userboot/userboot/bootinfo.c
stand/userboot/userboot/bootinfo32.c
stand/userboot/userboot/bootinfo64.c
stand/userboot/userboot/libuserboot.h