summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2015-11-17 11:39:21 -0500
committerPeter Jones <pjones@redhat.com>2015-11-17 11:39:21 -0500
commit0470d800d5426085e4beca580e2dadebb64a23db (patch)
treeb8ca5a90f90a54caff87a4468540d74a034deabe
parent82e8358fa15abaf6056874ef414924ecc388f7d2 (diff)
downloadefi-boot-shim-0470d800d5426085e4beca580e2dadebb64a23db.tar.gz
efi-boot-shim-0470d800d5426085e4beca580e2dadebb64a23db.zip
MokManager: Fix a -Wsign-compare bug on i?86
My favorite part of -Wsign-compare is how it shows different results on different arches for no obvious reason. Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--MokManager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MokManager.c b/MokManager.c
index ee6dffb1..2de6853d 100644
--- a/MokManager.c
+++ b/MokManager.c
@@ -588,11 +588,11 @@ static void show_mok_info (EFI_GUID Type, void *Mok, UINTN MokSize)
static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title)
{
- INTN MokNum = 0;
+ UINTN MokNum = 0;
MokListNode *keys = NULL;
UINT32 key_num = 0;
CHAR16 **menu_strings;
- int i;
+ unsigned int i;
if (KeyListSize < (sizeof(EFI_SIGNATURE_LIST) +
sizeof(EFI_SIGNATURE_DATA))) {