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/HttpUtilitiesProtocol.c | |
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/HttpUtilitiesProtocol.c')
-rw-r--r-- | NetworkPkg/HttpUtilitiesDxe/HttpUtilitiesProtocol.c | 60 |
1 files changed, 30 insertions, 30 deletions
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 +}
|