From ae46cf9d053aecfcf400d82c898616916886ee24 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Mon, 8 Oct 2012 21:44:43 -0400 Subject: [PATCH] Add __attribute__ ((packed)) to MokListNode definition Packing this lets us use MokListNode with the binary MokList representation. --- MokManager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MokManager.c b/MokManager.c index 4c736d1..491d4d6 100644 --- a/MokManager.c +++ b/MokManager.c @@ -18,7 +18,7 @@ struct menu_item { typedef struct { UINT32 MokSize; UINT8 *Mok; -} MokListNode; +} __attribute__ ((packed)) MokListNode; static EFI_INPUT_KEY get_keystroke (void) {