Revision: 19191
          http://sourceforge.net/p/edk2/code/19191
Author:   vanjeff
Date:     2015-12-10 07:19:44 +0000 (Thu, 10 Dec 2015)
Log Message:
-----------
SecurityPkg: AuthVariableLib: Fix GCC compile error

(Sync patch r19140 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Chao Zhang <[email protected]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/19140

Modified Paths:
--------------
    branches/UDK2015/SecurityPkg/Library/AuthVariableLib/AuthService.c

Modified: branches/UDK2015/SecurityPkg/Library/AuthVariableLib/AuthService.c
===================================================================
--- branches/UDK2015/SecurityPkg/Library/AuthVariableLib/AuthService.c  
2015-12-10 07:19:10 UTC (rev 19190)
+++ branches/UDK2015/SecurityPkg/Library/AuthVariableLib/AuthService.c  
2015-12-10 07:19:44 UTC (rev 19191)
@@ -555,10 +555,10 @@
   )
 {
   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 @@
   )
 {
   EFI_STATUS  Status;
-  UINT8       *DeployedVarData;
-  UINT8       *SetupVarData;
-  UINT8       *SecureBootVarData;
+  VOID        *DeployedVarData;
+  VOID        *SetupVarData;
+  VOID        *SecureBootVarData;
   UINT8       SecureBootEnable;
   UINTN       DataSize;
 
@@ -835,11 +835,11 @@
   )
 {
   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 @@
   )
 {
   EFI_STATUS   Status;
-  UINT8        *AuditVarData;
-  UINT8        *SetupVarData;
-  UINT8        *SecureBootVarData;
+  VOID         *AuditVarData;
+  VOID         *SetupVarData;
+  VOID         *SecureBootVarData;
   UINT8        SecureBootEnable;
   UINTN        DataSize;
 
@@ -1746,7 +1746,7 @@
   )
 {
   EFI_STATUS    Status;
-  UINT8         *VarData;
+  VOID          *VarData;
   UINTN         VarDataSize;
 
   //
@@ -1801,7 +1801,7 @@
   //
   // If AuditMode/DeployedMode is assigned same value. Simply return 
EFI_SUCCESS
   //
-  if (*VarData == *(UINT8 *)Data) {
+  if (*(UINT8 *)VarData == *(UINT8 *)Data) {
     return EFI_SUCCESS;
   }
 


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to