diff options
author | Sylvain Gault <sylvain.gault@gmail.com> | 2015-08-25 03:29:56 +0200 |
---|---|---|
committer | Sylvain Gault <sylvain.gault@gmail.com> | 2015-08-26 04:15:51 +0200 |
commit | e1fac9980d27bbef124fd40084b7a591064b50b6 (patch) | |
tree | 2cf46ee42f0c64a2aad0b16977e162a791c44f35 | |
parent | e466d2498604c8eea055a8e98284d65311073b39 (diff) | |
download | syslinux-e1fac9980d27bbef124fd40084b7a591064b50b6.tar.gz syslinux-e1fac9980d27bbef124fd40084b7a591064b50b6.tar.xz syslinux-e1fac9980d27bbef124fd40084b7a591064b50b6.zip |
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>
-rw-r--r-- | efi/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |