]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkUnixPkg/Dxe/PlatformBds/Generic/BootMaint/BBSsupport.c
fix some minor warning for unix package
[mirror_edk2.git] / EdkUnixPkg / Dxe / PlatformBds / Generic / BootMaint / BBSsupport.c
index c9f2402eb140de7171062caf5b28cad425d20ba9..76dd54f0c7521f0ed1327cf60795a507d7273eed 100644 (file)
@@ -24,10 +24,14 @@ Abstract:
 #include "BBSsupport.h"\r
 \r
 EFI_DEVICE_PATH_PROTOCOL  EndDevicePath[] = {\r
 #include "BBSsupport.h"\r
 \r
 EFI_DEVICE_PATH_PROTOCOL  EndDevicePath[] = {\r
-  END_DEVICE_PATH_TYPE,\r
-  END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-  END_DEVICE_PATH_LENGTH,\r
-  0\r
+  {\r
+    END_DEVICE_PATH_TYPE,\r
+    END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
+    {\r
+      END_DEVICE_PATH_LENGTH,\r
+      0\r
+    }\r
+  }\r
 };\r
 \r
 VOID\r
 };\r
 \r
 VOID\r
@@ -446,7 +450,7 @@ BdsDeleteAllInvalidLegacyBootOptions (
   LocalBbsTable = NULL;\r
   BbsEntry      = NULL;\r
 \r
   LocalBbsTable = NULL;\r
   BbsEntry      = NULL;\r
 \r
-  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);\r
+  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**) &LegacyBios);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
@@ -680,7 +684,7 @@ Returns:
   LocalHddInfo  = NULL;\r
   LocalBbsTable = NULL;\r
 \r
   LocalHddInfo  = NULL;\r
   LocalBbsTable = NULL;\r
 \r
-  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);\r
+  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**)&LegacyBios);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
@@ -985,7 +989,7 @@ Index# is a 16 bit integer, the low byte of it stands for the index in BBS table
   BEVIndex      = 0;\r
   NewDevPtr     = NULL;\r
 \r
   BEVIndex      = 0;\r
   NewDevPtr     = NULL;\r
 \r
-  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);\r
+  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**) &LegacyBios);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
@@ -1497,7 +1501,7 @@ BdsRefreshBbsTableForBoot (
   LocalBbsTable = NULL;\r
   DevType       = BBS_UNKNOWN;\r
 \r
   LocalBbsTable = NULL;\r
   DevType       = BBS_UNKNOWN;\r
 \r
-  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);\r
+  Status        = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**) &LegacyBios);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r