summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Häuser <Marvin.Haeuser@outlook.com>2018-02-27 23:08:23 +0100
committerJiewen Yao <jiewen.yao@intel.com>2018-02-28 09:14:42 +0800
commit2bbb69518ed8ed2a5d42325dd0983a6c16697a68 (patch)
tree3d59f808ed9bfbe3026c41a6feaf5a58b0f04883
parent4a26d528d2035bd0d9d18f24c3240bbf943cdf92 (diff)
downloadedk2-platforms-2bbb69518ed8ed2a5d42325dd0983a6c16697a68.tar.xz
MinPlatformPkg/PeiHobVariableLibFce: Add missing casts to VOID **.
Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
-rw-r--r--Platform/Intel/MinPlatformPkg/Library/PeiHobVariableLibFce/PeiHobVariableLibFce.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Platform/Intel/MinPlatformPkg/Library/PeiHobVariableLibFce/PeiHobVariableLibFce.c b/Platform/Intel/MinPlatformPkg/Library/PeiHobVariableLibFce/PeiHobVariableLibFce.c
index ecad77ec8a..7ae65c08d6 100644
--- a/Platform/Intel/MinPlatformPkg/Library/PeiHobVariableLibFce/PeiHobVariableLibFce.c
+++ b/Platform/Intel/MinPlatformPkg/Library/PeiHobVariableLibFce/PeiHobVariableLibFce.c
@@ -370,10 +370,10 @@ CreateDefaultVariableHob (
DefaultFileIsFound = FALSE;
FvInstance = 0;
FfsHeader = NULL;
- while (((*PeiServices)->FfsFindNextVolume (PeiServices, FvInstance, &FvHeader) == EFI_SUCCESS) &&
+ while (((*PeiServices)->FfsFindNextVolume (PeiServices, FvInstance, (VOID **)&FvHeader) == EFI_SUCCESS) &&
(!DefaultFileIsFound)) {
FfsHeader = NULL;
- while ((*PeiServices)->FfsFindNextFile (PeiServices, EFI_FV_FILETYPE_FREEFORM, FvHeader, &FfsHeader) == EFI_SUCCESS) {
+ while ((*PeiServices)->FfsFindNextFile (PeiServices, EFI_FV_FILETYPE_FREEFORM, FvHeader, (VOID **)&FfsHeader) == EFI_SUCCESS) {
if (CompareGuid ((EFI_GUID *) FfsHeader, &gDefaultDataFileGuid)) {
DefaultFileIsFound = TRUE;
break;