]> git.ipfire.org Git - thirdparty/systemd.git/commit
boot: Use stdbool 23842/head
authorJan Janssen <medhefgo@web.de>
Mon, 27 Jun 2022 09:04:57 +0000 (11:04 +0200)
committerJan Janssen <medhefgo@web.de>
Mon, 27 Jun 2022 10:27:23 +0000 (12:27 +0200)
commite5a1b8f9a3b4269084431788b12c30ee78e1b4f4
treee6f66ed258b38bdfd39789415b4d07062d46206b
parent07d0fde49e2f0c033c5262d7847bae8ea1808b70
boot: Use stdbool

The way the UEFI spec defines BOOLEAN is fully compatible to stdbool, so
it is perfectly safe to switch to it. Although any other values than 0/1
are undefined by the spec, we could theoretically have cases where a
sloppy firmware hands us a bad BOOLEAN (since gnu-efi/edk2 declare it
as uint8_t). So any uses where we pass a pointer to BOOLEAN are left
untouched.
18 files changed:
src/boot/efi/boot.c
src/boot/efi/console.c
src/boot/efi/drivers.c
src/boot/efi/graphics.c
src/boot/efi/graphics.h
src/boot/efi/measure.c
src/boot/efi/measure.h
src/boot/efi/pe.c
src/boot/efi/secure-boot.c
src/boot/efi/secure-boot.h
src/boot/efi/shim.c
src/boot/efi/shim.h
src/boot/efi/splash.c
src/boot/efi/stub.c
src/boot/efi/ticks.c
src/boot/efi/util.c
src/boot/efi/util.h
src/boot/efi/xbootldr.c