NetworkPkg/UefiPxeBcDxe: Fix GCC build issue

The call to AsciiStrStr on line 330 requires a CHAR8*
input, and since strings are being parsed, CHAR8* is
more appropriate for BootFileName and BootFileNamePtr.

Signed-off-by: jljusten
Reviewed-by: lgrosenb

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12321 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jljusten 2011-09-10 00:06:53 +00:00
parent 6a5aa4d6dc
commit 01d89e9c29
1 changed files with 5 additions and 5 deletions

View File

@ -232,8 +232,8 @@ PxeBcExtractBootFileUrl (
) )
{ {
UINT16 PrefixLen; UINT16 PrefixLen;
UINT8 *BootFileNamePtr; CHAR8 *BootFileNamePtr;
UINT8 *BootFileName; CHAR8 *BootFileName;
UINT16 BootFileNameLen; UINT16 BootFileNameLen;
CHAR8 *TmpStr; CHAR8 *TmpStr;
CHAR8 TmpChar; CHAR8 TmpChar;
@ -314,7 +314,7 @@ PxeBcExtractBootFileUrl (
// //
// Get the part of BOOTFILE_NAME string. // Get the part of BOOTFILE_NAME string.
// //
BootFileNamePtr = (UINT8*)((UINTN)ServerAddress + 1); BootFileNamePtr = (CHAR8*)((UINTN)ServerAddress + 1);
if (*BootFileNamePtr != PXEBC_TFTP_URL_SEPARATOR) { if (*BootFileNamePtr != PXEBC_TFTP_URL_SEPARATOR) {
FreePool (TmpStr); FreePool (TmpStr);
return EFI_INVALID_PARAMETER; return EFI_INVALID_PARAMETER;
@ -337,12 +337,12 @@ PxeBcExtractBootFileUrl (
// //
// Extract boot file name from URL. // Extract boot file name from URL.
// //
BootFileName = (UINT8 *) AllocateZeroPool (BootFileNameLen); BootFileName = (CHAR8 *) AllocateZeroPool (BootFileNameLen);
if (BootFileName == NULL) { if (BootFileName == NULL) {
FreePool (TmpStr); FreePool (TmpStr);
return EFI_OUT_OF_RESOURCES; return EFI_OUT_OF_RESOURCES;
} }
*FileName = BootFileName; *FileName = (UINT8*) BootFileName;
// //
// Decode percent-encoding in boot file name. // Decode percent-encoding in boot file name.