[syslinux] [PATCH 1/3] efi: fix warnings about argument types
celelibi at gmail.com
celelibi at gmail.com
Tue Aug 25 19:28:12 PDT 2015
From: Sylvain Gault <sylvain.gault at gmail.com>
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 at gmail.com>
---
efi/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/efi/main.c b/efi/main.c
index 6dbc259..8e08d4f 100644
--- a/efi/main.c
+++ b/efi/main.c
@@ -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,
--
2.5.0
More information about the Syslinux
mailing list