From 5654a4f9c59eeede1a9e04f5f74e292ac5a7f8c1 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 12 Mar 2023 16:40:18 +0900 Subject: sd-boot: fix incompatible type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following build error: ``` ../src/boot/efi/vmm.c: In function ‘get_smbios_table’: ../src/boot/efi/vmm.c:217:24: error: incompatible types when returning type ‘_Bool’ but ‘const SmbiosHeader *’ was expected 217 | return false; | ^~~~~ ``` --- src/boot/efi/vmm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/boot/efi/vmm.c b/src/boot/efi/vmm.c index c0e8823fe6..60e8a97c43 100644 --- a/src/boot/efi/vmm.c +++ b/src/boot/efi/vmm.c @@ -214,7 +214,7 @@ static const SmbiosHeader *get_smbios_table(uint8_t type, uint64_t *ret_size_lef uint64_t size = 0; const uint8_t *p = find_smbios_configuration_table(&size); if (!p) - return false; + return NULL; for (;;) { if (size < sizeof(SmbiosHeader)) -- cgit v1.2.1