summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2013-05-15 13:37:15 -0400
committerPeter Jones <pjones@redhat.com>2013-05-15 13:37:15 -0400
commit35b0b55b3ee0f6d6771c7992b8fefffc54bda48e (patch)
treeb95d7a066d20f5f529fbc77c0ede1dc489dfdbfc
parent40cf2a423d7a080999cb22d0cb0bae33ab028c62 (diff)
downloadefi-boot-shim-35b0b55b3ee0f6d6771c7992b8fefffc54bda48e.tar.gz
efi-boot-shim-35b0b55b3ee0f6d6771c7992b8fefffc54bda48e.zip
Fix some minor type errors.
Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--fallback.c2
-rw-r--r--shim.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/fallback.c b/fallback.c
index cf1ebe46..82ddbf2f 100644
--- a/fallback.c
+++ b/fallback.c
@@ -501,7 +501,7 @@ find_boot_options(EFI_HANDLE device)
EFI_FILE_IO_INTERFACE *fio = NULL;
rc = uefi_call_wrapper(BS->HandleProtocol, 3, device,
- &FileSystemProtocol, &fio);
+ &FileSystemProtocol, (void **)&fio);
if (EFI_ERROR(rc)) {
Print(L"Couldn't find file system: %d\n", rc);
return rc;
diff --git a/shim.c b/shim.c
index f2b8f1d1..c1cf17ae 100644
--- a/shim.c
+++ b/shim.c
@@ -910,8 +910,8 @@ should_use_fallback(EFI_HANDLE image_handle)
unsigned int pathlen = 0;
CHAR16 *bootpath;
EFI_FILE_IO_INTERFACE *fio = NULL;
- EFI_FILE_HANDLE vh;
- EFI_FILE_HANDLE fh;
+ EFI_FILE *vh;
+ EFI_FILE *fh;
EFI_STATUS rc;
rc = uefi_call_wrapper(BS->HandleProtocol, 3, image_handle,
@@ -943,7 +943,7 @@ should_use_fallback(EFI_HANDLE image_handle)
bootpath[i+1] = '\0';
rc = uefi_call_wrapper(BS->HandleProtocol, 3, li->DeviceHandle,
- &FileSystemProtocol, &fio);
+ &FileSystemProtocol, (void **)&fio);
if (EFI_ERROR(rc))
return 0;