diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-05-18 16:02:54 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-05-19 09:12:25 +0800 |
commit | e52c04f54bca1f6658ea19a16cb5bd76173f0a26 (patch) | |
tree | f8c5ef9dead29789a09e0f636bf78afcb81b7c69 /SecurityPkg/Library | |
parent | b1fddccf4a5ae041d5a3ffd1eecbabac42a9aeb5 (diff) | |
download | edk2-platforms-e52c04f54bca1f6658ea19a16cb5bd76173f0a26.tar.xz |
SecurityPkg: Revert e8bff743847970c1b5a74bfc891f97223e5e0263.
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>
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 9a09eaed60..5546c2e5c9 100644 --- a/SecurityPkg/Library/AuthVariableLib/AuthService.c +++ b/SecurityPkg/Library/AuthVariableLib/AuthService.c @@ -555,10 +555,10 @@ TransitionFromAuditMode( )
{
EFI_STATUS Status;
- VOID *AuditVarData;
- VOID *DeployedVarData;
- VOID *SetupVarData;
- VOID *SecureBootVarData;
+ UINT8 *AuditVarData;
+ UINT8 *DeployedVarData;
+ UINT8 *SetupVarData;
+ UINT8 *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
@@ -693,9 +693,9 @@ TransitionFromDeployedMode( )
{
EFI_STATUS Status;
- VOID *DeployedVarData;
- VOID *SetupVarData;
- VOID *SecureBootVarData;
+ UINT8 *DeployedVarData;
+ UINT8 *SetupVarData;
+ UINT8 *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
@@ -835,11 +835,11 @@ TransitionFromUserMode( )
{
EFI_STATUS Status;
- VOID *AuditVarData;
- VOID *DeployedVarData;
- VOID *SetupVarData;
- VOID *PkVarData;
- VOID *SecureBootVarData;
+ UINT8 *AuditVarData;
+ UINT8 *DeployedVarData;
+ UINT8 *SetupVarData;
+ UINT8 *PkVarData;
+ UINT8 *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
VARIABLE_ENTRY_CONSISTENCY VariableEntry;
@@ -1034,9 +1034,9 @@ TransitionFromSetupMode( )
{
EFI_STATUS Status;
- VOID *AuditVarData;
- VOID *SetupVarData;
- VOID *SecureBootVarData;
+ UINT8 *AuditVarData;
+ UINT8 *SetupVarData;
+ UINT8 *SecureBootVarData;
UINT8 SecureBootEnable;
UINTN DataSize;
@@ -1746,7 +1746,7 @@ ProcessSecureBootModeVar ( )
{
EFI_STATUS Status;
- VOID *VarData;
+ UINT8 *VarData;
UINTN VarDataSize;
//
@@ -1801,7 +1801,7 @@ ProcessSecureBootModeVar ( //
// If AuditMode/DeployedMode is assigned same value. Simply return EFI_SUCCESS
//
- if (*(UINT8 *)VarData == *(UINT8 *)Data) {
+ if (*VarData == *(UINT8 *)Data) {
return EFI_SUCCESS;
}
|