aboutsummaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt2018-12-30 21:03:15 +0100
committerAlexander Graf2019-02-13 09:40:05 +0100
commit452257a34a2e8d06af37ad30c7dd742920ff6dc5 (patch)
tree6af88c2b7157b66216bc2248e43a62c095a17dbe /include/efi_loader.h
parent0bda81bfdc5c67341e51c2b412a2271099861e6e (diff)
efi_loader: efi_set_variable use const void *
The SetVariable() runtime service does not change the data passed to it. So mark the parameter as constant. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 5420c99e0c3..b44678169aa 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -518,7 +518,7 @@ efi_status_t EFIAPI efi_get_next_variable_name(efi_uintn_t *variable_name_size,
const efi_guid_t *vendor);
efi_status_t EFIAPI efi_set_variable(u16 *variable_name,
const efi_guid_t *vendor, u32 attributes,
- efi_uintn_t data_size, void *data);
+ efi_uintn_t data_size, const void *data);
/*
* See section 3.1.3 in the v2.7 UEFI spec for more details on