diff options
author | Liming Gao <liming.gao@intel.com> | 2018-06-27 21:12:32 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2018-06-28 11:19:49 +0800 |
commit | f75a7f568e6d0944327970b3f3f2dafd9bba76b1 (patch) | |
tree | cc64f0e24e92dab5713bf2099f7e1f4fc5152ff6 /NetworkPkg/HttpUtilitiesDxe | |
parent | 9095d37b8fe5bfc3d02adad6ba7fd7359ebc0107 (diff) | |
download | edk2-f75a7f568e6d0944327970b3f3f2dafd9bba76b1.tar.gz edk2-f75a7f568e6d0944327970b3f3f2dafd9bba76b1.tar.bz2 edk2-f75a7f568e6d0944327970b3f3f2dafd9bba76b1.zip |
NetworkPkg: Clean up source files
1. Do not use tab characters
2. No trailing white space in one line
3. All files must end with CRLF
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'NetworkPkg/HttpUtilitiesDxe')
4 files changed, 45 insertions, 45 deletions
diff --git a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c index 8c54874b9f..290107880b 100644 --- a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c +++ b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.c @@ -1,7 +1,7 @@ /** @file
The DriverEntryPoint and Unload for HttpUtilities driver.
- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -25,7 +25,7 @@ @retval EFI_INVALID_PARAMETER ImageHandle is not a valid image handle.
**/
-EFI_STATUS
+EFI_STATUS
EFIAPI
HttpUtilitiesDxeUnload (
IN EFI_HANDLE ImageHandle
@@ -59,11 +59,11 @@ HttpUtilitiesDxeUnload ( // Firstly, find HttpUtilitiesProtocol interface
//
Status = gBS->OpenProtocol (
- HandleBuffer[Index],
- &gEfiHttpUtilitiesProtocolGuid,
- (VOID **) &HttpUtilitiesProtocol,
- ImageHandle,
- NULL,
+ HandleBuffer[Index],
+ &gEfiHttpUtilitiesProtocolGuid,
+ (VOID **) &HttpUtilitiesProtocol,
+ ImageHandle,
+ NULL,
EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL
);
if (EFI_ERROR (Status)) {
@@ -72,7 +72,7 @@ HttpUtilitiesDxeUnload ( //
// Then, uninstall HttpUtilities interface
- //
+ //
Status = gBS->UninstallMultipleProtocolInterfaces (
HandleBuffer[Index],
&gEfiHttpUtilitiesProtocolGuid, HttpUtilitiesProtocol,
@@ -120,7 +120,7 @@ HttpUtilitiesDxeDriverEntryPoint ( &mHttpUtilitiesProtocol,
NULL
);
-
+
return Status;
}
diff --git a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.uni b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.uni index 0efdcd5429..11d4a3351e 100644 --- a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.uni +++ b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxe.uni @@ -2,15 +2,15 @@ // This module produces Http Utilities Protocol.
//
// This module produces Http Utilities Protocol.
-//
//
-// Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+//
+// Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
// which accompanies this distribution. The full text of the license may be found at
// http://opensource.org/licenses/bsd-license.php.
-//
+//
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
//
diff --git a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxeExtra.uni b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxeExtra.uni index a9194be736..74f1915a5e 100644 --- a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxeExtra.uni +++ b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesDxeExtra.uni @@ -1,7 +1,7 @@ // /** @file
// HttpUtilitiesDxe Localized Strings and Content
//
-// Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+// Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
//
// This program and the accompanying materials
// are licensed and made available under the terms and conditions of the BSD License
@@ -13,8 +13,8 @@ //
// **/
-#string STR_PROPERTIES_MODULE_NAME
-#language en-US
+#string STR_PROPERTIES_MODULE_NAME
+#language en-US
"UEFI HTTP UTILITIES DXE"
diff --git a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c index 645fca4084..a9a1c7c586 100644 --- a/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c +++ b/NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c @@ -1,7 +1,7 @@ /** @file
Implementation of EFI_HTTP_PROTOCOL protocol interfaces.
- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -91,17 +91,17 @@ HttpUtilitiesBuild ( NewMessagePtr = NULL;
*NewMessageSize = 0;
Status = EFI_SUCCESS;
-
+
if (This == NULL) {
return EFI_INVALID_PARAMETER;
}
if (SeedMessage != NULL) {
Status = This->Parse (
- This,
- SeedMessage,
- SeedMessageSize,
- &SeedHeaderFields,
+ This,
+ SeedMessage,
+ SeedMessageSize,
+ &SeedHeaderFields,
&SeedFieldCount
);
if (EFI_ERROR (Status)) {
@@ -118,15 +118,15 @@ HttpUtilitiesBuild ( Status = EFI_OUT_OF_RESOURCES;
goto ON_EXIT;
}
-
+
for (Index = 0, TempFieldCount = 0; Index < SeedFieldCount; Index++) {
//
// Check whether each SeedHeaderFields member is in DeleteList
//
if (HttpIsValidHttpHeader( DeleteList, DeleteCount, SeedHeaderFields[Index].FieldName)) {
Status = HttpSetFieldNameAndValue (
- &TempHeaderFields[TempFieldCount],
- SeedHeaderFields[Index].FieldName,
+ &TempHeaderFields[TempFieldCount],
+ SeedHeaderFields[Index].FieldName,
SeedHeaderFields[Index].FieldValue
);
if (EFI_ERROR (Status)) {
@@ -151,23 +151,23 @@ HttpUtilitiesBuild ( for (Index = 0; Index < TempFieldCount; Index++) {
Status = HttpSetFieldNameAndValue (
- &NewHeaderFields[Index],
- TempHeaderFields[Index].FieldName,
+ &NewHeaderFields[Index],
+ TempHeaderFields[Index].FieldName,
TempHeaderFields[Index].FieldValue
);
if (EFI_ERROR (Status)) {
goto ON_EXIT;
}
}
-
+
NewFieldCount = TempFieldCount;
for (Index = 0; Index < AppendCount; Index++) {
HttpHeader = HttpFindHeader (NewFieldCount, NewHeaderFields, AppendList[Index]->FieldName);
if (HttpHeader != NULL) {
Status = HttpSetFieldNameAndValue (
- HttpHeader,
- AppendList[Index]->FieldName,
+ HttpHeader,
+ AppendList[Index]->FieldName,
AppendList[Index]->FieldValue
);
if (EFI_ERROR (Status)) {
@@ -175,8 +175,8 @@ HttpUtilitiesBuild ( }
} else {
Status = HttpSetFieldNameAndValue (
- &NewHeaderFields[NewFieldCount],
- AppendList[Index]->FieldName,
+ &NewHeaderFields[NewFieldCount],
+ AppendList[Index]->FieldName,
AppendList[Index]->FieldValue
);
if (EFI_ERROR (Status)) {
@@ -241,13 +241,13 @@ HttpUtilitiesBuild ( ASSERT (*NewMessageSize == (UINTN)NewMessagePtr - (UINTN)(*NewMessage));
//
- // Free allocated buffer
+ // Free allocated buffer
//
ON_EXIT:
if (SeedHeaderFields != NULL) {
HttpFreeHeaderFields(SeedHeaderFields, SeedFieldCount);
}
-
+
if (TempHeaderFields != NULL) {
HttpFreeHeaderFields(TempHeaderFields, TempFieldCount);
}
@@ -255,7 +255,7 @@ ON_EXIT: if (NewHeaderFields != NULL) {
HttpFreeHeaderFields(NewHeaderFields, NewFieldCount);
}
-
+
return Status;
}
@@ -298,7 +298,7 @@ HttpUtilitiesParse ( CHAR8 *FieldName;
CHAR8 *FieldValue;
UINTN Index;
-
+
Status = EFI_SUCCESS;
TempHttpMessage = NULL;
Token = NULL;
@@ -306,18 +306,18 @@ HttpUtilitiesParse ( FieldName = NULL;
FieldValue = NULL;
Index = 0;
-
+
if (This == NULL || HttpMessage == NULL || HeaderFields == NULL || FieldCount == NULL) {
return EFI_INVALID_PARAMETER;
}
-
+
TempHttpMessage = AllocateZeroPool (HttpMessageSize);
if (TempHttpMessage == NULL) {
return EFI_OUT_OF_RESOURCES;
}
CopyMem (TempHttpMessage, HttpMessage, HttpMessageSize);
-
+
//
// Get header number
//
@@ -339,7 +339,7 @@ HttpUtilitiesParse ( Status = EFI_INVALID_PARAMETER;
goto ON_EXIT;
}
-
+
//
// Allocate buffer for header
//
@@ -349,9 +349,9 @@ HttpUtilitiesParse ( Status = EFI_OUT_OF_RESOURCES;
goto ON_EXIT;
}
-
+
CopyMem (TempHttpMessage, HttpMessage, HttpMessageSize);
-
+
//
// Set Field and Value to each header
//
@@ -371,17 +371,17 @@ HttpUtilitiesParse ( HttpFreeHeaderFields (*HeaderFields, Index);
goto ON_EXIT;
}
-
+
Index++;
}
//
- // Free allocated buffer
+ // Free allocated buffer
//
ON_EXIT:
if (TempHttpMessage != NULL) {
FreePool (TempHttpMessage);
}
-
+
return Status;
-}
\ No newline at end of file +}
|