]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/UefiPxeBcDxe: Fix GCC build issue
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 10 Sep 2011 00:06:53 +0000 (00:06 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 10 Sep 2011 00:06:53 +0000 (00:06 +0000)
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

NetworkPkg/UefiPxeBcDxe/PxeBcDhcp6.c

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