summaryrefslogtreecommitdiff
path: root/Platform
diff options
context:
space:
mode:
authorMarvin Häuser <Marvin.Haeuser@outlook.com>2018-02-27 23:28:19 +0100
committerJiewen Yao <jiewen.yao@intel.com>2018-02-28 09:14:57 +0800
commit29d8cf6c6253ca05db0b977e7b34de764bd981af (patch)
tree70b18fe662399e2e602e10343bbb17b9ec993867 /Platform
parent8d17b17cfc1af4b4f9dc0b566f1207c73ae9557b (diff)
downloadedk2-platforms-29d8cf6c6253ca05db0b977e7b34de764bd981af.tar.xz
MinPlatformPkg/DxePlatformBootManagerLib: Add missing typecasts.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Diffstat (limited to 'Platform')
-rw-r--r--Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c
index 79ff8b0b6c..8fd31df876 100644
--- a/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c
+++ b/Platform/Intel/MinPlatformPkg/Bds/Library/DxePlatformBootManagerLib/BdsPlatform.c
@@ -581,7 +581,7 @@ UpdateGraphicConOut (
//
GopDevicePath = EfiBootManagerGetGopDevicePath (GraphicsControllerHandle);
if (GopDevicePath != NULL) {
- GetEfiGlobalVariable2 (L"ConOut", &ConOutDevicePath, NULL);
+ GetEfiGlobalVariable2 (L"ConOut", (VOID **)&ConOutDevicePath, NULL);
UpdatedConOutDevicePath = UpdateGopDevicePath (ConOutDevicePath, GopDevicePath);
if (ConOutDevicePath != NULL) {
FreePool (ConOutDevicePath);
@@ -681,7 +681,7 @@ ConnectTrustedConsole (
for (Index = 0; Index < sizeof (ConsoleVar) / sizeof (ConsoleVar[0]); Index++) {
- GetEfiGlobalVariable2 (ConsoleVar[Index], &Consoles, NULL);
+ GetEfiGlobalVariable2 (ConsoleVar[Index], (VOID **)&Consoles, NULL);
TempDevicePath = Consoles;
do {
@@ -1130,8 +1130,8 @@ PlatformBootManagerBeforeConsole (
gBootMode == BOOT_WITH_FULL_CONFIGURATION_PLUS_DIAGNOSTICS ||
gBootMode == BOOT_IN_RECOVERY_MODE) {
- GetEfiGlobalVariable2 (L"ConOut", &VarConOut, NULL); if (VarConOut != NULL) { FreePool (VarConOut); }
- GetEfiGlobalVariable2 (L"ConIn", &VarConIn, NULL); if (VarConIn != NULL) { FreePool (VarConIn); }
+ GetEfiGlobalVariable2 (L"ConOut", (VOID **)&VarConOut, NULL); if (VarConOut != NULL) { FreePool (VarConOut); }
+ GetEfiGlobalVariable2 (L"ConIn", (VOID **)&VarConIn, NULL); if (VarConIn != NULL) { FreePool (VarConIn); }
//
// Only fill ConIn/ConOut when ConIn/ConOut is empty because we may drop to Full Configuration boot mode in non-first boot