systemd-boot: Return EFI_STATUS instead of INTN for file_read()
authorJan Janssen <medhefgo@web.de>
Sun, 7 Jan 2018 10:53:34 +0000 (11:53 +0100)
committerJan Janssen <medhefgo@web.de>
Sun, 28 Jan 2018 16:20:41 +0000 (17:20 +0100)
commit33d4ba32c93cba64832ce73c50cfd316200c0be3
tree68c3b6fafdd531d6a1add0a53241bc504a3b5e07
parent46659f7deb962f55c728e70597e37c2a3ab6326d
systemd-boot: Return EFI_STATUS instead of INTN for file_read()

file_read() wants to return both a EFI_STATUS (INTN) and a file
length (UINTN). This seems rather fishy for either large files or
when returning errors (which are defined as positive numbers).
Let's just be more clear and return EFI_STATUS and let the file
length be a pointer.
src/boot/efi/boot.c
src/boot/efi/shim.c
src/boot/efi/util.c
src/boot/efi/util.h