Page MenuHomeFreeBSD

efivar: Add some explicit casts to uuid_t
Needs ReviewPublic

Authored by imp on Fri, Apr 25, 7:33 PM.

Details

Reviewers
tsoome
kevans
kib
Summary

Since we know we're type-punning the EFI_GUID to a uuid_t, add some
explicit casts even though, at the moment, we typedef one to the other.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63737
Build 60621: arc lint + arc unit

Event Timeline

imp requested review of this revision.Fri, Apr 25, 7:33 PM
imp created this revision.

I would add some type-checking for the conversion. E.g you could define inlines uuid_t * efi_guid_to_uuid(efi_guid_t *) and const uuid_t *const_efi_guid_to_uuid(const efi_guid_t *) and use them instead of manually writing the cast.