From ed711b02ec18fecbf8b627b563e8cdfe1253170a Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Thu, 1 Nov 2012 09:46:51 -0400 Subject: Fix up some types Type-checking the UEFI calls picked up a couple of problems. Fix them up. --- shim.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'shim.c') 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"); -- cgit v1.2.3