fix some minor warning for unix package
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2230 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -24,10 +24,14 @@ Abstract:
|
||||
#include "BBSsupport.h"
|
||||
|
||||
EFI_DEVICE_PATH_PROTOCOL EndDevicePath[] = {
|
||||
END_DEVICE_PATH_TYPE,
|
||||
END_ENTIRE_DEVICE_PATH_SUBTYPE,
|
||||
END_DEVICE_PATH_LENGTH,
|
||||
0
|
||||
{
|
||||
END_DEVICE_PATH_TYPE,
|
||||
END_ENTIRE_DEVICE_PATH_SUBTYPE,
|
||||
{
|
||||
END_DEVICE_PATH_LENGTH,
|
||||
0
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
VOID
|
||||
@@ -446,7 +450,7 @@ BdsDeleteAllInvalidLegacyBootOptions (
|
||||
LocalBbsTable = NULL;
|
||||
BbsEntry = NULL;
|
||||
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**) &LegacyBios);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
@@ -680,7 +684,7 @@ Returns:
|
||||
LocalHddInfo = NULL;
|
||||
LocalBbsTable = NULL;
|
||||
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**)&LegacyBios);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
@@ -985,7 +989,7 @@ Index# is a 16 bit integer, the low byte of it stands for the index in BBS table
|
||||
BEVIndex = 0;
|
||||
NewDevPtr = NULL;
|
||||
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**) &LegacyBios);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
@@ -1497,7 +1501,7 @@ BdsRefreshBbsTableForBoot (
|
||||
LocalBbsTable = NULL;
|
||||
DevType = BBS_UNKNOWN;
|
||||
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**) &LegacyBios);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
@@ -757,7 +757,7 @@ Returns:
|
||||
//
|
||||
// There should be only one EFI_HII_PROTOCOL Image
|
||||
//
|
||||
Status = EfiLibLocateProtocol (&gEfiHiiProtocolGuid, &Hii);
|
||||
Status = EfiLibLocateProtocol (&gEfiHiiProtocolGuid, (VOID**)&Hii);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
@@ -893,7 +893,7 @@ Returns:
|
||||
}
|
||||
|
||||
Location = (UINT8 *) &UpdateData->Data;
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, &LegacyBios);
|
||||
Status = EfiLibLocateProtocol (&gEfiLegacyBiosProtocolGuid, (VOID**) &LegacyBios);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
//
|
||||
// If LegacyBios Protocol is installed, add 3 tags about legacy boot option
|
||||
@@ -1240,7 +1240,7 @@ Returns:
|
||||
//
|
||||
// There should only be one Form Configuration protocol
|
||||
//
|
||||
Status = EfiLibLocateProtocol (&gEfiFormBrowserProtocolGuid, &FormConfig);
|
||||
Status = EfiLibLocateProtocol (&gEfiFormBrowserProtocolGuid, (VOID**) &FormConfig);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
|
@@ -411,7 +411,7 @@ Returns:
|
||||
|
||||
ASSERT (FPCallbackInfo.Data.VideoBIOS <= 1);
|
||||
|
||||
Status = gBS->AllocatePool (EfiBootServicesData, 2 * sizeof (IFR_OPTION), &IfrOptionList);
|
||||
Status = gBS->AllocatePool (EfiBootServicesData, 2 * sizeof (IFR_OPTION), (VOID**) &IfrOptionList);
|
||||
if (IfrOptionList != NULL) {
|
||||
IfrOptionList[0].Flags = EFI_IFR_FLAG_INTERACTIVE;
|
||||
IfrOptionList[0].Key = SET_VIDEO_BIOS_TYPE_QUESTION_ID + 0x2000;
|
||||
|
Reference in New Issue
Block a user