]> git.proxmox.com Git - efi-boot-shim.git/commitdiff
Make list_keys() index variables all be signed.
authorPeter Jones <pjones@redhat.com>
Sun, 21 Sep 2014 17:19:30 +0000 (13:19 -0400)
committerPeter Jones <pjones@redhat.com>
Sun, 21 Sep 2014 20:25:28 +0000 (16:25 -0400)
We build with -Werror=signed-compare in fedora/rhel rpms, and this
showed up.

Signed-off-by: Peter Jones <pjones@redhat.com>
MokManager.c

index 50cb9d7f10dce6af9b891189d82e3037f7a315b8..ecbcdd345a05d55d022a36633ac71676b68fdeb9 100644 (file)
@@ -436,11 +436,11 @@ static void show_mok_info (void *Mok, UINTN MokSize)
 
 static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title)
 {
-       UINT32 MokNum = 0;
+       INTN MokNum = 0;
        MokListNode *keys = NULL;
        INTN key_num = 0;
        CHAR16 **menu_strings;
-       unsigned int i;
+       int i;
 
        if (KeyListSize < (sizeof(EFI_SIGNATURE_LIST) +
                           sizeof(EFI_SIGNATURE_DATA))) {