efi_loader: use const for GUIDs in the EFI_FILE_PROTOCOL

Use const efi_guid_t* when passing GUIDs.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
Heinrich Schuchardt 2018-04-04 15:42:09 +02:00 committed by Alexander Graf
parent 2db1eba1c3
commit 9c9021e245
2 changed files with 4 additions and 4 deletions

View File

@ -866,10 +866,10 @@ struct efi_file_handle {
efi_status_t (EFIAPI *setpos)(struct efi_file_handle *file, efi_status_t (EFIAPI *setpos)(struct efi_file_handle *file,
efi_uintn_t pos); efi_uintn_t pos);
efi_status_t (EFIAPI *getinfo)(struct efi_file_handle *file, efi_status_t (EFIAPI *getinfo)(struct efi_file_handle *file,
efi_guid_t *info_type, efi_uintn_t *buffer_size, const efi_guid_t *info_type, efi_uintn_t *buffer_size,
void *buffer); void *buffer);
efi_status_t (EFIAPI *setinfo)(struct efi_file_handle *file, efi_status_t (EFIAPI *setinfo)(struct efi_file_handle *file,
efi_guid_t *info_type, efi_uintn_t buffer_size, const efi_guid_t *info_type, efi_uintn_t buffer_size,
void *buffer); void *buffer);
efi_status_t (EFIAPI *flush)(struct efi_file_handle *file); efi_status_t (EFIAPI *flush)(struct efi_file_handle *file);
}; };

View File

@ -429,7 +429,7 @@ error:
} }
static efi_status_t EFIAPI efi_file_getinfo(struct efi_file_handle *file, static efi_status_t EFIAPI efi_file_getinfo(struct efi_file_handle *file,
efi_guid_t *info_type, const efi_guid_t *info_type,
efi_uintn_t *buffer_size, efi_uintn_t *buffer_size,
void *buffer) void *buffer)
{ {
@ -481,7 +481,7 @@ error:
} }
static efi_status_t EFIAPI efi_file_setinfo(struct efi_file_handle *file, static efi_status_t EFIAPI efi_file_setinfo(struct efi_file_handle *file,
efi_guid_t *info_type, const efi_guid_t *info_type,
efi_uintn_t buffer_size, efi_uintn_t buffer_size,
void *buffer) void *buffer)
{ {