//\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
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
(UINT16) ReplyLen,\r
BufferSizePtr,\r
Offset,\r
- (INT8 *) &u,\r
+ (UINT8 *) &u,\r
ServerIpPtr,\r
&ServerReplyPort,\r
&Private->EfiBc.Mode->StationIp,\r
Status = gBS->AllocatePool (\r
EfiBootServicesData,\r
BUFFER_ALLOCATE_SIZE,\r
- &BufferPtrLocal\r
+ (VOID **) &BufferPtrLocal\r
);\r
\r
if (EFI_ERROR (Status) || BufferPtrLocal == NULL) {\r