Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
efi: fix warnings about argument types
The function efi_get_MAC was given a pointer to array instead of a
simple pointer, generating a warning with gcc.

Signed-off-by: Sylvain Gault <sylvain.gault@gmail.com>
  • Loading branch information
Sylvain Gault committed Aug 26, 2015
1 parent e466d24 commit e1fac99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions efi/main.c
Expand Up @@ -105,13 +105,13 @@ struct efi_binding *efi_create_binding(EFI_GUID *bguid, EFI_GUID *pguid)
status = EFI_UNSUPPORTED;
goto free_binding;
}
efi_get_MAC(DevicePath, &mac_1, PXE_MAC_LENGTH);
efi_get_MAC(DevicePath, mac_1, PXE_MAC_LENGTH);
status = LibLocateHandle(ByProtocol, bguid, NULL, &nr_handles, &handles);
if (status != EFI_SUCCESS)
goto free_binding;
for (i = 0; i < nr_handles; i++) {
DevicePath = DevicePathFromHandle(handles[i]);
if (efi_get_MAC(DevicePath, &mac_2, PXE_MAC_LENGTH)
if (efi_get_MAC(DevicePath, mac_2, PXE_MAC_LENGTH)
&& memcmp(mac_1, mac_2, PXE_MAC_LENGTH) == 0) {
sb_handle = handles[i];
status = uefi_call_wrapper(BS->OpenProtocol, 6, sb_handle,
Expand Down

0 comments on commit e1fac99

Please sign in to comment.