]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/FSVariable/MemStorage.c
MdePkg: add missing #defines for decoding PCIe 2.1 extended capability structures
[mirror_edk2.git] / DuetPkg / FSVariable / MemStorage.c
index 63af149645b7529436423aa6ffdff42a431675b1..88709b7f742e1ffa0be173de091243c6e40651a3 100644 (file)
@@ -1,7 +1,7 @@
 /*++\r
 \r
-Copyright (c) 2006 - 2007, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -54,18 +54,18 @@ MemStorageConstructor (
   EFI_STATUS                  Status;\r
   VS_DEV                      *Dev;\r
 \r
-  Status = gBS->AllocatePool (EfiRuntimeServicesData, sizeof(VS_DEV), &Dev);\r
+  Status = gBS->AllocatePool (EfiRuntimeServicesData, sizeof(VS_DEV), (VOID **) &Dev);\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   ZeroMem (Dev, sizeof(VS_DEV));\r
 \r
-  Dev->Signature   = VARIABLE_STORE_SIGNATURE;\r
+  Dev->Signature   = VS_DEV_SIGNATURE;\r
   Dev->Size        = Size;\r
 \r
   Dev->VarStore.Erase    = MemEraseStore;\r
   Dev->VarStore.Write    = MemWriteStore;\r
 \r
-  Status = gBS->AllocatePool (EfiRuntimeServicesData, Size, &VAR_DATA_PTR (Dev));\r
+  Status = gBS->AllocatePool (EfiRuntimeServicesData, Size, (VOID **) &VAR_DATA_PTR (Dev));\r
   ASSERT_EFI_ERROR (Status);\r
 \r
   DEBUG ((EFI_D_ERROR, "VStorage: Size = 0x%x\n", Size));\r
@@ -87,9 +87,9 @@ OnVirtualAddressChangeMs (
 \r
   Dev = DEV_FROM_THIS (Context);\r
 \r
-  EfiConvertPointer (0, &VAR_DATA_PTR (Dev));\r
-  EfiConvertPointer (0, (VOID**)&Dev->VarStore.Erase);\r
-  EfiConvertPointer (0, (VOID**)&Dev->VarStore.Write);\r
+  EfiConvertPointer (0, (VOID **)&VAR_DATA_PTR (Dev));\r
+  EfiConvertPointer (0, (VOID **)&Dev->VarStore.Erase);\r
+  EfiConvertPointer (0, (VOID **)&Dev->VarStore.Write);\r
 }\r
 \r
 EFI_STATUS\r