From f1feb3ac04e2c96aa751fda8d36bb50c04ffa58d Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Thu, 18 Feb 2021 10:36:23 +0100 Subject: 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 --- include/sbat.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include') 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 -- cgit v1.2.3