]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: AuthVariableLib: Fix GCC compile error
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 7 Dec 2015 09:03:57 +0000 (09:03 +0000)
committerczhang46 <czhang46@Edk2>
Mon, 7 Dec 2015 09:03:57 +0000 (09:03 +0000)
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/trunk/edk2@19140 6f19259b-4bc3-4df7-8a09-765794883524

SecurityPkg/Library/AuthVariableLib/AuthService.c

index 5546c2e5c9065082ba5d850db9e35305537798b3..9a09eaed609a8a384bea6db9aabc37fea31cd64b 100644 (file)
@@ -555,10 +555,10 @@ TransitionFromAuditMode(
   )\r
 {\r
   EFI_STATUS  Status;\r
-  UINT8       *AuditVarData;\r
-  UINT8       *DeployedVarData;\r
-  UINT8       *SetupVarData;\r
-  UINT8       *SecureBootVarData;\r
+  VOID        *AuditVarData;\r
+  VOID        *DeployedVarData;\r
+  VOID        *SetupVarData;\r
+  VOID        *SecureBootVarData;\r
   UINT8       SecureBootEnable;\r
   UINTN       DataSize;\r
 \r
@@ -693,9 +693,9 @@ TransitionFromDeployedMode(
   )\r
 {\r
   EFI_STATUS  Status;\r
-  UINT8       *DeployedVarData;\r
-  UINT8       *SetupVarData;\r
-  UINT8       *SecureBootVarData;\r
+  VOID        *DeployedVarData;\r
+  VOID        *SetupVarData;\r
+  VOID        *SecureBootVarData;\r
   UINT8       SecureBootEnable;\r
   UINTN       DataSize;\r
 \r
@@ -835,11 +835,11 @@ TransitionFromUserMode(
   )\r
 {\r
   EFI_STATUS   Status;\r
-  UINT8        *AuditVarData;\r
-  UINT8        *DeployedVarData;\r
-  UINT8        *SetupVarData;\r
-  UINT8        *PkVarData;\r
-  UINT8        *SecureBootVarData;\r
+  VOID         *AuditVarData;\r
+  VOID         *DeployedVarData;\r
+  VOID         *SetupVarData;\r
+  VOID         *PkVarData;\r
+  VOID         *SecureBootVarData;\r
   UINT8        SecureBootEnable;\r
   UINTN        DataSize;\r
   VARIABLE_ENTRY_CONSISTENCY  VariableEntry;\r
@@ -1034,9 +1034,9 @@ TransitionFromSetupMode(
   )\r
 {\r
   EFI_STATUS   Status;\r
-  UINT8        *AuditVarData;\r
-  UINT8        *SetupVarData;\r
-  UINT8        *SecureBootVarData;\r
+  VOID         *AuditVarData;\r
+  VOID         *SetupVarData;\r
+  VOID         *SecureBootVarData;\r
   UINT8        SecureBootEnable;\r
   UINTN        DataSize;\r
 \r
@@ -1746,7 +1746,7 @@ ProcessSecureBootModeVar (
   )\r
 {\r
   EFI_STATUS    Status;\r
-  UINT8         *VarData;\r
+  VOID          *VarData;\r
   UINTN         VarDataSize;\r
 \r
   //\r
@@ -1801,7 +1801,7 @@ ProcessSecureBootModeVar (
   //\r
   // If AuditMode/DeployedMode is assigned same value. Simply return EFI_SUCCESS\r
   //\r
-  if (*VarData == *(UINT8 *)Data) {\r
+  if (*(UINT8 *)VarData == *(UINT8 *)Data) {\r
     return EFI_SUCCESS;\r
   }\r
 \r