]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/PxeBcDxe/Pxe_bc_mtftp.c
1. Enable Network stack to pass SCT, currently MNP, ARP, IP4, TCP4 and DHCP4 have...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / PxeBcDxe / Pxe_bc_mtftp.c
index 43e1bbb429bd6adcee82f4ffca5e237b525f43bd..6a42646ab3de5603937b9f3ccab82a5d63421ddb 100644 (file)
@@ -555,7 +555,7 @@ TftpRwReq (
   //\r
   u                 = Buffer;\r
   u->ReqStr.OpCode  = HTONS (Req);\r
-  TotalLen = sizeof (Mode) + sizeof (u->ReqStr.OpCode) + (Len = 1 + AsciiStrLen (FilenamePtr));\r
+  TotalLen = sizeof (Mode) + sizeof (u->ReqStr.OpCode) + (Len = 1 + AsciiStrLen ((CHAR8 *) FilenamePtr));\r
 \r
   CopyMem (u->ReqStr.FileName, FilenamePtr, Len);\r
   Ptr = (UINT8 *) (u->ReqStr.FileName + Len);\r
@@ -567,7 +567,7 @@ TftpRwReq (
     CopyMem (Ptr, BlockSizeOp, sizeof (BlockSizeOp));\r
     UtoA10 (*PacketSizePtr, Ptr + sizeof (BlockSizeOp));\r
 \r
-    TotalLen += (Len = 1 + AsciiStrLen (Ptr + sizeof (BlockSizeOp)) + sizeof (BlockSizeOp));\r
+    TotalLen += (Len = 1 + AsciiStrLen ((CHAR8 *) (Ptr + sizeof (BlockSizeOp))) + sizeof (BlockSizeOp));\r
 \r
     Ptr += Len;\r
   }\r
@@ -1387,7 +1387,7 @@ TftpInfo (
             (UINT16) ReplyLen,\r
             BufferSizePtr,\r
             Offset,\r
-            (INT8 *) &u,\r
+            (UINT8 *) &u,\r
             ServerIpPtr,\r
             &ServerReplyPort,\r
             &Private->EfiBc.Mode->StationIp,\r
@@ -1899,7 +1899,7 @@ PxeBcMtftp (
     Status = gBS->AllocatePool (\r
                     EfiBootServicesData,\r
                     BUFFER_ALLOCATE_SIZE,\r
-                    &BufferPtrLocal\r
+                    (VOID **) &BufferPtrLocal\r
                     );\r
 \r
     if (EFI_ERROR (Status) || BufferPtrLocal == NULL) {\r