From 9c9021e24571505d76969d8fd37b3b5e06ad2590 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 4 Apr 2018 15:42:09 +0200 Subject: [PATCH] efi_loader: use const for GUIDs in the EFI_FILE_PROTOCOL Use const efi_guid_t* when passing GUIDs. Signed-off-by: Heinrich Schuchardt Signed-off-by: Alexander Graf --- include/efi_api.h | 4 ++-- lib/efi_loader/efi_file.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/efi_api.h b/include/efi_api.h index 396f45eaa8..8af466a6dc 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -866,10 +866,10 @@ struct efi_file_handle { efi_status_t (EFIAPI *setpos)(struct efi_file_handle *file, efi_uintn_t pos); 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); 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); efi_status_t (EFIAPI *flush)(struct efi_file_handle *file); }; diff --git a/lib/efi_loader/efi_file.c b/lib/efi_loader/efi_file.c index 0be0f8b807..2fc77cfb87 100644 --- a/lib/efi_loader/efi_file.c +++ b/lib/efi_loader/efi_file.c @@ -429,7 +429,7 @@ error: } 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, void *buffer) { @@ -481,7 +481,7 @@ error: } 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, void *buffer) { -- 2.39.5