Improve const safety by marking parameters that are pointers to const as such. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/efi.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/efi.h b/include/efi.h index 2e34c6be068a..f0c968ec5e8a 100644 --- a/include/efi.h +++ b/include/efi.h @@ -241,12 +241,12 @@ struct efi_boot_services { #define EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER 0x00000008 #define EFI_OPEN_PROTOCOL_BY_DRIVER 0x00000010 #define EFI_OPEN_PROTOCOL_EXCLUSIVE 0x00000020 - efi_status_t (EFIAPI *open_protocol)(efi_handle_t handle, efi_guid_t *protocol, + efi_status_t (EFIAPI *open_protocol)(efi_handle_t handle, const efi_guid_t *protocol, void ** interface, efi_handle_t agent_handle, efi_handle_t controller_handle, u32 attributes); - efi_status_t (EFIAPI *close_protocol)(efi_handle_t handle, efi_guid_t *protocol, + efi_status_t (EFIAPI *close_protocol)(efi_handle_t handle, const efi_guid_t *protocol, efi_handle_t agent, efi_handle_t controller); - efi_status_t(EFIAPI *open_protocol_information)(efi_handle_t handle, efi_guid_t *Protocol, + efi_status_t(EFIAPI *open_protocol_information)(efi_handle_t handle, const efi_guid_t *Protocol, struct efi_open_protocol_information_entry **entry_buffer, unsigned long *entry_count); efi_status_t (EFIAPI *protocols_per_handle)(efi_handle_t handle, @@ -254,7 +254,7 @@ struct efi_boot_services { unsigned long *protocols_buffer_count); efi_status_t (EFIAPI *locate_handle_buffer) ( enum efi_locate_search_type search_type, - efi_guid_t *protocol, void *search_key, + const efi_guid_t *protocol, void *search_key, unsigned long *no_handles, efi_handle_t **buffer); void *locate_protocol; void *install_multiple_protocol_interfaces; -- 2.39.2