|
|
f96e0b |
From 085ef74104c8f1a5d2cc68a0d1a2e0569827d6f4 Mon Sep 17 00:00:00 2001
|
|
|
f96e0b |
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
Date: Wed, 12 Sep 2012 08:31:05 +0200
|
|
|
f96e0b |
Subject: [PATCH 037/482] * include/grub/efi/api.h
|
|
|
f96e0b |
(grub_efi_runtime_services): Make vendor_guid a const pointer. *
|
|
|
f96e0b |
grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a const
|
|
|
f96e0b |
pointer. (efiemu_set_variable): Make vendor_guid a const pointer.
|
|
|
f96e0b |
|
|
|
f96e0b |
---
|
|
|
f96e0b |
ChangeLog | 8 ++++++++
|
|
|
f96e0b |
grub-core/efiemu/runtime/efiemu.c | 14 +++++++-------
|
|
|
f96e0b |
include/grub/efi/api.h | 2 +-
|
|
|
f96e0b |
3 files changed, 16 insertions(+), 8 deletions(-)
|
|
|
f96e0b |
|
|
|
f96e0b |
diff --git a/ChangeLog b/ChangeLog
|
|
|
f96e0b |
index 8576923..527e9d1 100644
|
|
|
f96e0b |
--- a/ChangeLog
|
|
|
f96e0b |
+++ b/ChangeLog
|
|
|
f96e0b |
@@ -1,5 +1,13 @@
|
|
|
f96e0b |
2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
|
|
|
f96e0b |
+ * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
|
|
|
f96e0b |
+ a const pointer.
|
|
|
f96e0b |
+ * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
|
|
|
f96e0b |
+ const pointer.
|
|
|
f96e0b |
+ (efiemu_set_variable): Make vendor_guid a const pointer.
|
|
|
f96e0b |
+
|
|
|
f96e0b |
+2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
|
|
|
f96e0b |
+
|
|
|
f96e0b |
Don't require grub-mkconfig_lib to generate manpages for programs.
|
|
|
f96e0b |
|
|
|
f96e0b |
* gentpl.py (manpage): Additional argument adddeps. Add adddeps to
|
|
|
f96e0b |
diff --git a/grub-core/efiemu/runtime/efiemu.c b/grub-core/efiemu/runtime/efiemu.c
|
|
|
f96e0b |
index 84b02cb..d923e40 100644
|
|
|
f96e0b |
--- a/grub-core/efiemu/runtime/efiemu.c
|
|
|
f96e0b |
+++ b/grub-core/efiemu/runtime/efiemu.c
|
|
|
f96e0b |
@@ -78,7 +78,7 @@ efiemu_get_next_variable_name (grub_efi_uintn_t *variable_name_size,
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_efi_status_t
|
|
|
f96e0b |
efiemu_set_variable (grub_efi_char16_t *variable_name,
|
|
|
f96e0b |
- grub_efi_guid_t *vendor_guid,
|
|
|
f96e0b |
+ const grub_efi_guid_t *vendor_guid,
|
|
|
f96e0b |
grub_efi_uint32_t attributes,
|
|
|
f96e0b |
grub_efi_uintn_t data_size,
|
|
|
f96e0b |
void *data);
|
|
|
f96e0b |
@@ -131,11 +131,11 @@ extern grub_uint32_t efiemu_time_accuracy;
|
|
|
f96e0b |
|
|
|
f96e0b |
/* Some standard functions because we need to be standalone */
|
|
|
f96e0b |
static void
|
|
|
f96e0b |
-efiemu_memcpy (void *to, void *from, int count)
|
|
|
f96e0b |
+efiemu_memcpy (void *to, const void *from, int count)
|
|
|
f96e0b |
{
|
|
|
f96e0b |
int i;
|
|
|
f96e0b |
for (i = 0; i < count; i++)
|
|
|
f96e0b |
- ((grub_uint8_t *) to)[i] = ((grub_uint8_t *) from)[i];
|
|
|
f96e0b |
+ ((grub_uint8_t *) to)[i] = ((const grub_uint8_t *) from)[i];
|
|
|
f96e0b |
}
|
|
|
f96e0b |
|
|
|
f96e0b |
static int
|
|
|
f96e0b |
@@ -503,10 +503,10 @@ grub_efi_status_t EFI_FUNC
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_efi_status_t
|
|
|
f96e0b |
EFI_FUNC (efiemu_set_variable) (grub_efi_char16_t *variable_name,
|
|
|
f96e0b |
- grub_efi_guid_t *vendor_guid,
|
|
|
f96e0b |
- grub_efi_uint32_t attributes,
|
|
|
f96e0b |
- grub_efi_uintn_t data_size,
|
|
|
f96e0b |
- void *data)
|
|
|
f96e0b |
+ const grub_efi_guid_t *vendor_guid,
|
|
|
f96e0b |
+ grub_efi_uint32_t attributes,
|
|
|
f96e0b |
+ grub_efi_uintn_t data_size,
|
|
|
f96e0b |
+ void *data)
|
|
|
f96e0b |
{
|
|
|
f96e0b |
struct efi_variable *efivar;
|
|
|
f96e0b |
grub_uint8_t *ptr;
|
|
|
f96e0b |
diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h
|
|
|
f96e0b |
index ae61730..2917d14 100644
|
|
|
f96e0b |
--- a/include/grub/efi/api.h
|
|
|
f96e0b |
+++ b/include/grub/efi/api.h
|
|
|
f96e0b |
@@ -1208,7 +1208,7 @@ struct grub_efi_runtime_services
|
|
|
f96e0b |
|
|
|
f96e0b |
grub_efi_status_t
|
|
|
f96e0b |
(*set_variable) (grub_efi_char16_t *variable_name,
|
|
|
f96e0b |
- grub_efi_guid_t *vendor_guid,
|
|
|
f96e0b |
+ const grub_efi_guid_t *vendor_guid,
|
|
|
f96e0b |
grub_efi_uint32_t attributes,
|
|
|
f96e0b |
grub_efi_uintn_t data_size,
|
|
|
f96e0b |
void *data);
|
|
|
f96e0b |
--
|
|
|
f96e0b |
1.8.2.1
|
|
|
f96e0b |
|