diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-12 16:40:18 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-03-12 19:49:16 +0900 |
commit | 5654a4f9c59eeede1a9e04f5f74e292ac5a7f8c1 (patch) | |
tree | 24bc10b32b09eff4af0c805e78f5889d7d20af2a /src | |
parent | 9c344052418f8768a60f12fecbd1e242f5f142e9 (diff) | |
download | systemd-5654a4f9c59eeede1a9e04f5f74e292ac5a7f8c1.tar.gz |
sd-boot: fix incompatible type
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;
| ^~~~~
```
Diffstat (limited to 'src')
-rw-r--r-- | src/boot/efi/vmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |