diff options
| author | Peter Jones <pjones@redhat.com> | 2021-02-18 10:36:23 +0100 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-02-19 14:28:10 -0500 |
| commit | f1feb3ac04e2c96aa751fda8d36bb50c04ffa58d (patch) | |
| tree | 09dd24bbc16a3b03b3a35f69887350afbbf0da60 /include | |
| parent | 146f9d8e8d75eff8d3277a5416943877ed902c73 (diff) | |
| download | efi-boot-shim-f1feb3ac04e2c96aa751fda8d36bb50c04ffa58d.tar.gz efi-boot-shim-f1feb3ac04e2c96aa751fda8d36bb50c04ffa58d.zip | |
sbat: drop the struct sbat and just use two variables instead
The struct sbat isn't doing anything and only has two fields so let's pass
pass those two to the functions directly instead of storing it in a struct.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/sbat.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/sbat.h b/include/sbat.h index c49c645e..c34ad319 100644 --- a/include/sbat.h +++ b/include/sbat.h @@ -15,12 +15,7 @@ struct sbat_entry { const CHAR8 *vendor_url; }; -struct sbat { - unsigned int size; - struct sbat_entry **entries; -}; - -EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, struct sbat *sbat); +EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, size_t *sbats, struct sbat_entry ***sbat); #endif /* !SBAT_H_ */ // vim:fenc=utf-8:tw=75:noet |
