]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/IScsiDxe/IScsiTcp4Io.c
Fix X64 clang warnings.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / IScsiDxe / IScsiTcp4Io.c
index 96d990f7fe3b54cbdd8e7f21ef5c09ad715d7d41..e73a6dd5f78e4bca08b2c3de0ac34d8cb00dc24f 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   The wrap of TCP/IP Socket interface.\r
 \r
-Copyright (c) 2004 - 2007, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2004 - 2009, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
 http://opensource.org/licenses/bsd-license.php\r
@@ -267,8 +267,8 @@ Tcp4IoDestroySocket (
 /**\r
   Connect to the other endpoint of the TCP socket.\r
 \r
-  @param[in]  Tcp4Io  The Tcp4Io wrapping the TCP socket.\r
-  @param[in]  Timeout The time to wait for connection done.\r
+  @param[in, out]  Tcp4Io    The Tcp4Io wrapping the TCP socket.\r
+  @param[in]       Timeout   The time to wait for connection done.\r
   \r
   @retval EFI_SUCCESS          Connect to the other endpoint of the TCP socket successfully.\r
   @retval EFI_TIMEOUT          Failed to connect to the other endpoint of the TCP socket in the                               specified time period.\r
@@ -276,8 +276,8 @@ Tcp4IoDestroySocket (
 **/\r
 EFI_STATUS\r
 Tcp4IoConnect (\r
-  IN TCP4_IO    *Tcp4Io,\r
-  IN EFI_EVENT  Timeout\r
+  IN OUT TCP4_IO    *Tcp4Io,\r
+  IN EFI_EVENT      Timeout\r
   )\r
 {\r
   EFI_TCP4_PROTOCOL *Tcp4;\r
@@ -306,11 +306,11 @@ Tcp4IoConnect (
 /**\r
   Reset the socket.\r
 \r
-  @param[in]  Tcp4Io The Tcp4Io wrapping the TCP socket.\r
+  @param[in, out]  Tcp4Io The Tcp4Io wrapping the TCP socket.\r
 **/\r
 VOID\r
 Tcp4IoReset (\r
-  IN TCP4_IO  *Tcp4Io\r
+  IN OUT TCP4_IO  *Tcp4Io\r
   )\r
 {\r
   EFI_STATUS        Status;\r
@@ -386,7 +386,7 @@ Tcp4IoTransmit (
 \r
 ON_EXIT:\r
 \r
-  gBS->FreePool (TxData);\r
+  FreePool (TxData);\r
 \r
   return Status;\r
 }\r
@@ -480,8 +480,8 @@ Tcp4IoReceive (
   }\r
 \r
 ON_EXIT:\r
-\r
-  gBS->FreePool (Fragment);\r
+  Tcp4Io->RxToken.Packet.RxData = NULL;\r
+  FreePool (Fragment);\r
 \r
   return Status;\r
 }\r