From ef422fc53c4bc978767fcee35b284f61c02ea6d5 Mon Sep 17 00:00:00 2001 From: Paulo Alcantara Date: Tue, 12 Jan 2016 01:37:48 +0000 Subject: [PATCH] NetworkPkg: Fix some typos in Http boot driver. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Paulo Alcantara Reviewed-by: Jiaxin Wu Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19640 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/HttpBootDxe/HttpBootClient.c | 8 ++++---- NetworkPkg/HttpBootDxe/HttpBootClient.h | 2 +- NetworkPkg/HttpBootDxe/HttpBootSupport.c | 4 ++-- NetworkPkg/HttpBootDxe/HttpBootSupport.h | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/NetworkPkg/HttpBootDxe/HttpBootClient.c b/NetworkPkg/HttpBootDxe/HttpBootClient.c index a2cad0a6fb..f0817e92e2 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootClient.c +++ b/NetworkPkg/HttpBootDxe/HttpBootClient.c @@ -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, diff --git a/NetworkPkg/HttpBootDxe/HttpBootClient.h b/NetworkPkg/HttpBootDxe/HttpBootClient.h index 06b91098fc..e618316f10 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootClient.h +++ b/NetworkPkg/HttpBootDxe/HttpBootClient.h @@ -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; diff --git a/NetworkPkg/HttpBootDxe/HttpBootSupport.c b/NetworkPkg/HttpBootDxe/HttpBootSupport.c index 1fc4e76880..f9bbe4b1a0 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootSupport.c +++ b/NetworkPkg/HttpBootDxe/HttpBootSupport.c @@ -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; diff --git a/NetworkPkg/HttpBootDxe/HttpBootSupport.h b/NetworkPkg/HttpBootDxe/HttpBootSupport.h index d5956720a7..2eba14e026 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootSupport.h +++ b/NetworkPkg/HttpBootDxe/HttpBootSupport.h @@ -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 -- 2.39.2