diff options
| author | Gary Ching-Pang Lin <glin@suse.com> | 2015-06-16 11:46:14 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2015-06-16 11:46:14 -0400 |
| commit | 91ef3c4b670e46d2c6feedd4eece8087701a8ab7 (patch) | |
| tree | 854084cc35816978c5c850a5778ed5e9f6d2d4d1 | |
| parent | e9afe1f9d30c033fbda114e62e3b1d8fce485cce (diff) | |
| download | efi-boot-shim-91ef3c4b670e46d2c6feedd4eece8087701a8ab7.tar.gz efi-boot-shim-91ef3c4b670e46d2c6feedd4eece8087701a8ab7.zip | |
MokManager: fix comparison between signed and unsigned integer
Patch from Johannes Segitz <jsegitz@suse.com>
| -rw-r--r-- | MokManager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/MokManager.c b/MokManager.c index b9475be1..ef84e60c 100644 --- a/MokManager.c +++ b/MokManager.c @@ -514,8 +514,8 @@ static void show_efi_hash (EFI_GUID Type, void *Mok, UINTN MokSize) UINTN hash_num; UINT8 *hash; CHAR16 **menu_strings; - int key_num = 0; - int i; + UINTN key_num = 0; + UINTN i; sig_size = sha_size(Type) + sizeof(EFI_GUID); if ((MokSize % sig_size) != 0) { @@ -593,7 +593,7 @@ static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title) { INTN MokNum = 0; MokListNode *keys = NULL; - int key_num = 0; + UINT32 key_num = 0; CHAR16 **menu_strings; int i; @@ -1119,7 +1119,7 @@ static int match_hash (UINT8 *hash, UINT32 hash_size, int start, void *hash_list, UINT32 list_num) { UINT8 *ptr; - int i; + UINTN i; ptr = hash_list + sizeof(EFI_GUID); for (i = start; i < list_num; i++) { @@ -1134,7 +1134,7 @@ static int match_hash (UINT8 *hash, UINT32 hash_size, int start, static void mem_move (void *dest, void *src, UINTN size) { UINT8 *d, *s; - int i; + UINTN i; d = (UINT8 *)dest; s = (UINT8 *)src; @@ -1191,7 +1191,7 @@ static void delete_hash_list (EFI_GUID Type, void *hash_list, UINT32 list_size, UINT32 hash_num; UINT32 sig_size; UINT8 *hash; - int i; + UINT32 i; hash_size = sha_size (Type); sig_size = hash_size + sizeof(EFI_GUID); |
