We don't actually want chars here, but rather raw bytes, in particular
to avoid signedness issues. Hence, let's use uint8_t here.
}
EFI_STATUS efivar_get_uint32_le(const EFI_GUID *vendor, const char16_t *name, uint32_t *ret) {
- _cleanup_free_ char *buf = NULL;
+ _cleanup_free_ uint8_t *buf = NULL;
size_t size;
EFI_STATUS err;
}
EFI_STATUS efivar_get_uint64_le(const EFI_GUID *vendor, const char16_t *name, uint64_t *ret) {
- _cleanup_free_ char *buf = NULL;
+ _cleanup_free_ uint8_t *buf = NULL;
size_t size;
EFI_STATUS err;
}
EFI_STATUS efivar_get_boolean_u8(const EFI_GUID *vendor, const char16_t *name, bool *ret) {
- _cleanup_free_ char *b = NULL;
+ _cleanup_free_ uint8_t *b = NULL;
size_t size;
EFI_STATUS err;