summaryrefslogtreecommitdiff
path: root/lib/efi_selftest/efi_selftest_variables.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-12-30 22:53:51 +0300
committerAlexander Graf <agraf@suse.de>2019-02-13 11:40:05 +0300
commit0bda81bfdc5c67341e51c2b412a2271099861e6e (patch)
treee49f0d64928dee92b646e29043fc89a2d2088516 /lib/efi_selftest/efi_selftest_variables.c
parent056b45bc50c11a57363b7b958297f13506a2508b (diff)
downloadu-boot-0bda81bfdc5c67341e51c2b412a2271099861e6e.tar.xz
efi_loader: use const efi_guid_t * for variable services
The runtime variable services never change GUIDs. So we should declare the GUID parameters as constant. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_selftest/efi_selftest_variables.c')
-rw-r--r--lib/efi_selftest/efi_selftest_variables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efi_selftest/efi_selftest_variables.c b/lib/efi_selftest/efi_selftest_variables.c
index e4c389a872..ffc8cad329 100644
--- a/lib/efi_selftest/efi_selftest_variables.c
+++ b/lib/efi_selftest/efi_selftest_variables.c
@@ -15,10 +15,10 @@
static struct efi_boot_services *boottime;
static struct efi_runtime_services *runtime;
-static efi_guid_t guid_vendor0 =
+static const efi_guid_t guid_vendor0 =
EFI_GUID(0x67029eb5, 0x0af2, 0xf6b1,
0xda, 0x53, 0xfc, 0xb5, 0x66, 0xdd, 0x1c, 0xe6);
-static efi_guid_t guid_vendor1 =
+static const efi_guid_t guid_vendor1 =
EFI_GUID(0xff629290, 0x1fc1, 0xd73f,
0x8f, 0xb1, 0x32, 0xf9, 0x0c, 0xa0, 0x42, 0xea);