summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2014-04-09 16:49:25 +0800
committerPeter Jones <pjones@redhat.com>2015-06-16 11:41:32 -0400
commitab9d7554847d6af0731794a9d7e7cf16dfdfb18e (patch)
tree12c3e26d1166b11d1834be8be9ebfc540ae537c0
parent8bd6b9cd5add76de4f0d8d0aaedc86ec04fdef16 (diff)
downloadefi-boot-shim-ab9d7554847d6af0731794a9d7e7cf16dfdfb18e.tar.gz
efi-boot-shim-ab9d7554847d6af0731794a9d7e7cf16dfdfb18e.zip
MokManager: fix the return value and type
There are some functions that the return value and the type didn't match. Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
-rw-r--r--MokManager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MokManager.c b/MokManager.c
index fc5006a6..a6a8af43 100644
--- a/MokManager.c
+++ b/MokManager.c
@@ -566,7 +566,7 @@ static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title)
if (KeyListSize < (sizeof(EFI_SIGNATURE_LIST) +
sizeof(EFI_SIGNATURE_DATA))) {
console_notify(L"No MOK keys found");
- return 0;
+ return EFI_NOT_FOUND;
}
MokNum = count_keys(KeyList, KeyListSize);
@@ -576,7 +576,7 @@ static EFI_STATUS list_keys (void *KeyList, UINTN KeyListSize, CHAR16 *title)
if (!keys) {
console_notify(L"Failed to construct key list");
- return 0;
+ return EFI_ABORTED;
}
menu_strings = AllocateZeroPool(sizeof(CHAR16 *) * (MokNum + 2));
@@ -901,7 +901,7 @@ static EFI_STATUS store_keys (void *MokNew, UINTN MokNewSize, int authenticate,
return EFI_SUCCESS;
}
-static UINTN mok_enrollment_prompt (void *MokNew, UINTN MokNewSize, int auth,
+static INTN mok_enrollment_prompt (void *MokNew, UINTN MokNewSize, int auth,
BOOLEAN MokX)
{
EFI_GUID shim_lock_guid = SHIM_LOCK_GUID;