Author: arty
Date: Thu Apr 2 05:02:56 2009
New Revision: 40321
URL:
http://svn.reactos.org/svn/reactos?rev=40321&view=rev
Log:
FORMATTING only.
Modified:
trunk/reactos/drivers/network/afd/afd/tdiconn.c
Modified: trunk/reactos/drivers/network/afd/afd/tdiconn.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/td…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/tdiconn.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/tdiconn.c [iso-8859-1] Thu Apr 2 05:02:56 2009
@@ -15,10 +15,10 @@
UINT TdiAddressSizeFromType( UINT AddressType ) {
switch( AddressType ) {
case AF_INET:
- return sizeof(TA_IP_ADDRESS);
+ return sizeof(TA_IP_ADDRESS);
default:
- AFD_DbgPrint(MID_TRACE,("TdiAddressSizeFromType - invalid type: %x\n",
AddressType));
- KeBugCheck( 0 );
+ AFD_DbgPrint(MID_TRACE,("TdiAddressSizeFromType - invalid type: %x\n",
AddressType));
+ KeBugCheck( 0 );
}
return 0;
}
@@ -36,7 +36,7 @@
}
VOID TaCopyAddressInPlace( PTA_ADDRESS Target,
- PTA_ADDRESS Source ) {
+ PTA_ADDRESS Source ) {
UINT AddrLen = TaLengthOfAddress( Source );
RtlCopyMemory( Target, Source, AddrLen );
}
@@ -49,7 +49,7 @@
}
VOID TaCopyTransportAddressInPlace( PTRANSPORT_ADDRESS Target,
- PTRANSPORT_ADDRESS Source ) {
+ PTRANSPORT_ADDRESS Source ) {
UINT AddrLen = TaLengthOfTransportAddress( Source );
RtlCopyMemory( Target, Source, AddrLen );
}
@@ -63,9 +63,9 @@
A = ExAllocatePool( NonPagedPool, AddrLen );
if( A )
- TaCopyTransportAddressInPlace( A, OtherAddress );
-
- return A;
+ TaCopyTransportAddressInPlace( A, OtherAddress );
+
+ return A;
}
static NTSTATUS TdiBuildNullConnectionInfoInPlace
@@ -80,23 +80,23 @@
* Status of operation
*/
{
- ULONG TdiAddressSize;
- PTRANSPORT_ADDRESS TransportAddress;
-
- TdiAddressSize = TdiAddressSizeFromType(Type);
-
- RtlZeroMemory(ConnInfo,
- sizeof(TDI_CONNECTION_INFORMATION) +
- TdiAddressSize);
-
- ConnInfo->OptionsLength = sizeof(ULONG);
- ConnInfo->RemoteAddressLength = TdiAddressSize;
- ConnInfo->RemoteAddress = TransportAddress =
- (PTRANSPORT_ADDRESS)&ConnInfo[1];
- TransportAddress->TAAddressCount = 1;
- TransportAddress->Address[0].AddressType = Type;
-
- return STATUS_SUCCESS;
+ ULONG TdiAddressSize;
+ PTRANSPORT_ADDRESS TransportAddress;
+
+ TdiAddressSize = TdiAddressSizeFromType(Type);
+
+ RtlZeroMemory(ConnInfo,
+ sizeof(TDI_CONNECTION_INFORMATION) +
+ TdiAddressSize);
+
+ ConnInfo->OptionsLength = sizeof(ULONG);
+ ConnInfo->RemoteAddressLength = TdiAddressSize;
+ ConnInfo->RemoteAddress = TransportAddress =
+ (PTRANSPORT_ADDRESS)&ConnInfo[1];
+ TransportAddress->TAAddressCount = 1;
+ TransportAddress->Address[0].AddressType = Type;
+
+ return STATUS_SUCCESS;
}
NTSTATUS TdiBuildNullConnectionInfo
@@ -112,34 +112,34 @@
* Status of operation
*/
{
- PTDI_CONNECTION_INFORMATION ConnInfo;
- ULONG TdiAddressSize;
- NTSTATUS Status;
-
- TdiAddressSize = TdiAddressSizeFromType(Type);
-
- ConnInfo = (PTDI_CONNECTION_INFORMATION)
- ExAllocatePool(NonPagedPool,
- sizeof(TDI_CONNECTION_INFORMATION) +
- TdiAddressSize);
- if (!ConnInfo) {
- *ConnectionInfo = NULL;
- return STATUS_INSUFFICIENT_RESOURCES;
- }
-
- Status = TdiBuildNullConnectionInfoInPlace( ConnInfo, Type );
-
- if (!NT_SUCCESS(Status)) {
- ExFreePool( ConnInfo );
- *ConnectionInfo = NULL;
- return Status;
- } else
- *ConnectionInfo = ConnInfo;
-
- ConnInfo->RemoteAddress = (PTA_ADDRESS)&ConnInfo[1];
- ConnInfo->RemoteAddressLength = TdiAddressSize;
-
- return Status;
+ PTDI_CONNECTION_INFORMATION ConnInfo;
+ ULONG TdiAddressSize;
+ NTSTATUS Status;
+
+ TdiAddressSize = TdiAddressSizeFromType(Type);
+
+ ConnInfo = (PTDI_CONNECTION_INFORMATION)
+ ExAllocatePool(NonPagedPool,
+ sizeof(TDI_CONNECTION_INFORMATION) +
+ TdiAddressSize);
+ if (!ConnInfo) {
+ *ConnectionInfo = NULL;
+ return STATUS_INSUFFICIENT_RESOURCES;
+ }
+
+ Status = TdiBuildNullConnectionInfoInPlace( ConnInfo, Type );
+
+ if (!NT_SUCCESS(Status)) {
+ ExFreePool( ConnInfo );
+ *ConnectionInfo = NULL;
+ return Status;
+ } else
+ *ConnectionInfo = ConnInfo;
+
+ ConnInfo->RemoteAddress = (PTA_ADDRESS)&ConnInfo[1];
+ ConnInfo->RemoteAddressLength = TdiAddressSize;
+
+ return Status;
}
@@ -151,10 +151,10 @@
_SEH2_TRY {
RtlCopyMemory( ConnectionInfo->RemoteAddress,
- Address,
- ConnectionInfo->RemoteAddressLength );
+ Address,
+ ConnectionInfo->RemoteAddressLength );
} _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) {
- Status = _SEH2_GetExceptionCode();
+ Status = _SEH2_GetExceptionCode();
} _SEH2_END;
return Status;
@@ -166,10 +166,10 @@
( PTDI_CONNECTION_INFORMATION *ConnectionInfo,
PTRANSPORT_ADDRESS Address ) {
NTSTATUS Status = TdiBuildNullConnectionInfo
- ( ConnectionInfo, Address->Address[0].AddressType );
+ ( ConnectionInfo, Address->Address[0].AddressType );
if( NT_SUCCESS(Status) )
- TdiBuildConnectionInfoInPlace( *ConnectionInfo, Address );
+ TdiBuildConnectionInfoInPlace( *ConnectionInfo, Address );
return Status;
}
@@ -178,16 +178,16 @@
TdiBuildConnectionInfoPair
( PTDI_CONNECTION_INFO_PAIR ConnectionInfo,
PTRANSPORT_ADDRESS From, PTRANSPORT_ADDRESS To )
- /*
- * FUNCTION: Fill a TDI_CONNECTION_INFO_PAIR struct will the two addresses
- * given.
- * ARGUMENTS:
- * ConnectionInfo: The pair
- * From: The from address
- * To: The to address
- * RETURNS:
- * Status of the operation
- */
+/*
+ * FUNCTION: Fill a TDI_CONNECTION_INFO_PAIR struct will the two addresses
+ * given.
+ * ARGUMENTS:
+ * ConnectionInfo: The pair
+ * From: The from address
+ * To: The to address
+ * RETURNS:
+ * Status of the operation
+ */
{
PCHAR LayoutFrame;
UINT SizeOfEntry;
@@ -220,10 +220,10 @@
}
PTA_ADDRESS TdiGetRemoteAddress( PTDI_CONNECTION_INFORMATION TdiConn )
- /*
- * Convenience function that rounds out the abstraction of
- * the TDI_CONNECTION_INFORMATION struct.
- */
+/*
+ * Convenience function that rounds out the abstraction of
+ * the TDI_CONNECTION_INFORMATION struct.
+ */
{
return TdiConn->RemoteAddress;
}