]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Sockets/WebServer/HTTP.c
Update the sockets applications
[mirror_edk2.git] / AppPkg / Applications / Sockets / WebServer / HTTP.c
index 314705b68f9189ecf9b0e591c490d70a8a58cc2c..8487de751a1287074b90c452f8273d7cb1109215 100644 (file)
@@ -561,7 +561,7 @@ HttpRequest (
     //  Attempt to parse the command\r
     //\r
     pData = &pPort->Request[0];\r
-    pEnd = &pData [ pPort->RequestLength ];\r
+    pEnd = &pData[ pPort->RequestLength ];\r
     pVerb = pData;\r
     pWebPage = HttpReplaceSpace ( pVerb, pEnd );\r
     if ( pEnd <= pWebPage ) {\r
@@ -589,7 +589,7 @@ HttpRequest (
     //  Walk the page table\r
     //\r
     pPage = &mPageList[0];\r
-    pPageEnd = &pPage [ mPageCount ];\r
+    pPageEnd = &pPage[ mPageCount ];\r
     while ( pPageEnd > pPage ) {\r
       //\r
       //  Determine if the page was located\r
@@ -668,15 +668,14 @@ HttpSend (
     //\r
     MaxBytes = sizeof ( pPort->TxBuffer );\r
     DataBytes = MaxBytes - pPort->TxBytes;\r
-    if ( DataBytes > LengthInBytes )\r
-    {\r
+    if ( DataBytes > LengthInBytes ) {\r
       DataBytes = LengthInBytes;\r
     }\r
 \r
     //\r
     //  Copy the data into the buffer\r
     //\r
-    CopyMem ( &pPort->TxBuffer [ pPort->TxBytes ],\r
+    CopyMem ( &pPort->TxBuffer[ pPort->TxBytes ],\r
               pBuffer,\r
               DataBytes );\r
 \r
@@ -910,7 +909,7 @@ HttpSendDump (
     //\r
     //  Walk the bytes to be displayed\r
     //\r
-    pEnd = &pData [ ByteCount ];\r
+    pEnd = &pData[ ByteCount ];\r
     while ( pEnd > pData ) {\r
       //\r
       //  Display the address\r
@@ -958,7 +957,7 @@ HttpSendDump (
       if (( BYTES_ON_A_LINE - InitialSpaces ) < BytesToDisplay ) {\r
         BytesToDisplay = BYTES_ON_A_LINE - InitialSpaces;\r
       }\r
-      pDataEnd = &pData [ BytesToDisplay ];\r
+      pDataEnd = &pData[ BytesToDisplay ];\r
       pTemp = pData;\r
       while ( pDataEnd > pTemp ) {\r
         Status = HttpSendHexBits ( SocketFD,\r
@@ -1151,7 +1150,7 @@ HttpSendGuid (
       Status = HttpSendHexBits ( SocketFD,\r
                                  pPort,\r
                                  8,\r
-                                 pGuid->Data4 [ Index ]);\r
+                                 pGuid->Data4[ Index ]);\r
       if ( EFI_ERROR ( Status )) {\r
         break;\r
       }\r
@@ -1488,7 +1487,7 @@ HttpSendValue (
   UINT64 Digit;\r
   CONST UINT64 * pEnd;\r
   CONST UINT64 * pDivisor;\r
-  CONST UINT64 pDivisors [ ] = {\r
+  CONST UINT64 pDivisors[ ] = {\r
      10000000000000000000L,\r
       1000000000000000000L,\r
        100000000000000000L,\r
@@ -1522,7 +1521,7 @@ HttpSendValue (
   //\r
   bDisplayZeros = FALSE;\r
   pDivisor = &pDivisors[0];\r
-  pEnd = &pDivisor [ sizeof ( pDivisors ) / sizeof ( pDivisors [0])];\r
+  pEnd = &pDivisor[ sizeof ( pDivisors ) / sizeof ( pDivisors[0])];\r
   while ( pEnd > pDivisor ) {\r
     //\r
     //  Determine the next digit\r