diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-12-10 07:19:44 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-12-10 07:19:44 +0000 |
commit | e8bff743847970c1b5a74bfc891f97223e5e0263 (patch) | |
tree | 2a775c71611acca1b7a3e99789535b7a07fa4fb8 /SecurityPkg/Library | |
parent | f8d51f2e2705229aaceae1e53f4eb8fb993fc0d4 (diff) | |
download | edk2-platforms-e8bff743847970c1b5a74bfc891f97223e5e0263.tar.xz |
SecurityPkg: AuthVariableLib: Fix GCC compile error
(Sync patch r19140 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@19191 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg/Library')
-rw-r--r-- | SecurityPkg/Library/AuthVariableLib/AuthService.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/SecurityPkg/Library/AuthVariableLib/AuthService.c b/SecurityPkg/Library/AuthVariableLib/AuthService.c index 5546c2e5c9..9a09eaed60 100644 --- a/SecurityPkg/Library/AuthVariableLib/AuthService.c +++ b/SecurityPkg/Library/AuthVariableLib/AuthService.c @@ -555,10 +555,10 @@ TransitionFromAuditMode( )
{
EFI_STATUS Status;
- UINT8 *AuditVarData;
- UINT8 *DeployedVarData;
- UINT8 *SetupVarData;
- UINT8 *SecureBootVarData;
+ VOID *AuditVarData;
+ VOID *DeployedVarData;
+ VOID *SetupVarData;
+ VOID *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
@@ -693,9 +693,9 @@ TransitionFromDeployedMode( )
{
EFI_STATUS Status;
- UINT8 *DeployedVarData;
- UINT8 *SetupVarData;
- UINT8 *SecureBootVarData;
+ VOID *DeployedVarData;
+ VOID *SetupVarData;
+ VOID *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
@@ -835,11 +835,11 @@ TransitionFromUserMode( )
{
EFI_STATUS Status;
- UINT8 *AuditVarData;
- UINT8 *DeployedVarData;
- UINT8 *SetupVarData;
- UINT8 *PkVarData;
- UINT8 *SecureBootVarData;
+ VOID *AuditVarData;
+ VOID *DeployedVarData;
+ VOID *SetupVarData;
+ VOID *PkVarData;
+ VOID *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
VARIABLE_ENTRY_CONSISTENCY VariableEntry;
@@ -1034,9 +1034,9 @@ TransitionFromSetupMode( )
{
EFI_STATUS Status;
- UINT8 *AuditVarData;
- UINT8 *SetupVarData;
- UINT8 *SecureBootVarData;
+ VOID *AuditVarData;
+ VOID *SetupVarData;
+ VOID *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
@@ -1746,7 +1746,7 @@ ProcessSecureBootModeVar ( )
{
EFI_STATUS Status;
- UINT8 *VarData;
+ VOID *VarData;
UINTN VarDataSize;
//
@@ -1801,7 +1801,7 @@ ProcessSecureBootModeVar ( //
// If AuditMode/DeployedMode is assigned same value. Simply return EFI_SUCCESS
//
- if (*VarData == *(UINT8 *)Data) {
+ if (*(UINT8 *)VarData == *(UINT8 *)Data) {
return EFI_SUCCESS;
}
|