summaryrefslogtreecommitdiff
path: root/shim.c
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-11-01 09:46:51 -0400
committerMatthew Garrett <mjg@redhat.com>2012-11-01 09:46:51 -0400
commited711b02ec18fecbf8b627b563e8cdfe1253170a (patch)
tree02a804391124880572855f839add0bfe022b7cdd /shim.c
parent5a8d573fb1349a6a1e7708b97934694d5ff735c4 (diff)
downloadefi-boot-shim-ed711b02ec18fecbf8b627b563e8cdfe1253170a.tar.gz
efi-boot-shim-ed711b02ec18fecbf8b627b563e8cdfe1253170a.zip
Fix up some types
Type-checking the UEFI calls picked up a couple of problems. Fix them up.
Diffstat (limited to 'shim.c')
-rw-r--r--shim.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shim.c b/shim.c
index 2f7f8c2e..8fbc0708 100644
--- a/shim.c
+++ b/shim.c
@@ -890,7 +890,8 @@ static EFI_STATUS load_image (EFI_LOADED_IMAGE *li, void **data,
device = li->DeviceHandle;
efi_status = uefi_call_wrapper(BS->HandleProtocol, 3, device,
- &simple_file_system_protocol, &drive);
+ &simple_file_system_protocol,
+ (void **)&drive);
if (efi_status != EFI_SUCCESS) {
Print(L"Failed to find fs\n");
@@ -1011,7 +1012,7 @@ EFI_STATUS start_image(EFI_HANDLE image_handle, CHAR16 *ImagePath)
int datasize;
efi_status = uefi_call_wrapper(BS->HandleProtocol, 3, image_handle,
- &loaded_image_protocol, &li);
+ &loaded_image_protocol, (void **)&li);
if (efi_status != EFI_SUCCESS) {
Print(L"Unable to init protocol\n");