NetworkPkg: Fix some typos in Http boot driver.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Paulo Alcantara <paulo.alc.cavalcanti@hp.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19640 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Paulo Alcantara 2016-01-12 01:37:48 +00:00 committed by sfu5
parent 91e914f587
commit ef422fc53c
4 changed files with 11 additions and 11 deletions

View File

@ -719,8 +719,8 @@ HttpBootGetBootFile (
EFI_STATUS Status;
CHAR8 *HostName;
EFI_HTTP_REQUEST_DATA *RequestData;
HTTP_IO_RESOPNSE_DATA *ResponseData;
HTTP_IO_RESOPNSE_DATA ResponseBody;
HTTP_IO_RESPONSE_DATA *ResponseData;
HTTP_IO_RESPONSE_DATA ResponseBody;
HTTP_IO *HttpIo;
HTTP_IO_HEADER *HttpIoHeader;
VOID *Parser;
@ -884,7 +884,7 @@ HttpBootGetBootFile (
//
// 3.1 First step, use zero BodyLength to only receive the response headers.
//
ResponseData = AllocateZeroPool (sizeof(HTTP_IO_RESOPNSE_DATA));
ResponseData = AllocateZeroPool (sizeof(HTTP_IO_RESPONSE_DATA));
if (ResponseData == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto ERROR_4;
@ -948,7 +948,7 @@ HttpBootGetBootFile (
// 3.4.2, start the message-body download, the identity and chunked transfer-coding
// is handled in different path here.
//
ZeroMem (&ResponseBody, sizeof (HTTP_IO_RESOPNSE_DATA));
ZeroMem (&ResponseBody, sizeof (HTTP_IO_RESPONSE_DATA));
if (IdentityMode) {
//
// In identity transfer-coding there is no need to parse the message body,

View File

@ -41,7 +41,7 @@ typedef struct {
typedef struct {
LIST_ENTRY Link; // Link to the CacheList in driver's private data.
EFI_HTTP_REQUEST_DATA *RequestData;
HTTP_IO_RESOPNSE_DATA *ResponseData; // Not include any message-body data.
HTTP_IO_RESPONSE_DATA *ResponseData; // Not include any message-body data.
UINTN EntityLength;
LIST_ENTRY EntityDataList; // Entity data (message-body)
} HTTP_BOOT_CACHE_CONTENT;

View File

@ -914,7 +914,7 @@ HttpIoSendRequest (
FALSE to continue receive the previous response message.
@param[out] ResponseData Point to a wrapper of the received response data.
@retval EFI_SUCCESS The HTTP resopnse is received.
@retval EFI_SUCCESS The HTTP response is received.
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
@ -925,7 +925,7 @@ EFI_STATUS
HttpIoRecvResponse (
IN HTTP_IO *HttpIo,
IN BOOLEAN RecvMsgHeader,
OUT HTTP_IO_RESOPNSE_DATA *ResponseData
OUT HTTP_IO_RESPONSE_DATA *ResponseData
)
{
EFI_STATUS Status;

View File

@ -168,7 +168,7 @@ typedef union {
} HTTP_IO_CONFIG_DATA;
//
// HTTO_IO wrapper of the EFI HTTP service.
// HTTP_IO wrapper of the EFI HTTP service.
//
typedef struct {
UINT8 IpVersion;
@ -196,7 +196,7 @@ typedef struct {
EFI_HTTP_HEADER *Headers;
UINTN BodyLength;
CHAR8 *Body;
} HTTP_IO_RESOPNSE_DATA;
} HTTP_IO_RESPONSE_DATA;
/**
Retrieve the host address using the EFI_DNS6_PROTOCOL.
@ -303,7 +303,7 @@ HttpIoSendRequest (
FALSE to continue receive the previous response message.
@param[out] ResponseData Point to a wrapper of the received response data.
@retval EFI_SUCCESS The HTTP resopnse is received.
@retval EFI_SUCCESS The HTTP response is received.
@retval EFI_INVALID_PARAMETER One or more parameters are invalid.
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred.
@ -314,7 +314,7 @@ EFI_STATUS
HttpIoRecvResponse (
IN HTTP_IO *HttpIo,
IN BOOLEAN RecvMsgHeader,
OUT HTTP_IO_RESOPNSE_DATA *ResponseData
OUT HTTP_IO_RESPONSE_DATA *ResponseData
);
#endif