diff options
| author | Matthew Garrett <mjg@redhat.com> | 2012-11-01 09:46:51 -0400 |
|---|---|---|
| committer | Matthew Garrett <mjg@redhat.com> | 2012-11-01 09:46:51 -0400 |
| commit | ed711b02ec18fecbf8b627b563e8cdfe1253170a (patch) | |
| tree | 02a804391124880572855f839add0bfe022b7cdd /shim.c | |
| parent | 5a8d573fb1349a6a1e7708b97934694d5ff735c4 (diff) | |
| download | efi-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"); |
