]> git.proxmox.com Git - efi-boot-shim.git/commitdiff
Add __attribute__ ((packed)) to MokListNode definition
authorMatthew Garrett <mjg@redhat.com>
Tue, 9 Oct 2012 01:44:43 +0000 (21:44 -0400)
committerMatthew Garrett <mjg@redhat.com>
Mon, 8 Oct 2012 21:33:32 +0000 (17:33 -0400)
Packing this lets us use MokListNode with the binary MokList representation.

MokManager.c

index 4c736d16754c2d3b8df25c4dc28222067ccc1df4..491d4d6df376ced90b455f3d6d1329462af97ef0 100644 (file)
@@ -18,7 +18,7 @@ struct menu_item {
 typedef struct {
        UINT32 MokSize;
        UINT8 *Mok;
-} MokListNode;
+} __attribute__ ((packed)) MokListNode;
 
 static EFI_INPUT_KEY get_keystroke (void)
 {