]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-boot: fix incompatible type
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 Mar 2023 07:40:18 +0000 (16:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 Mar 2023 10:49:16 +0000 (19:49 +0900)
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

index c0e8823fe6d5add6d887b1f6c85a365fcae9acd4..60e8a97c43a14a8daea27a4101b8b67aa718a459 100644 (file)
@@ -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))