Skip to content

Commit 702d44a

Browse files
committed
Uncrustify: triggered by comment.
1 parent 4f2344d commit 702d44a

File tree

4 files changed

+32
-31
lines changed

4 files changed

+32
-31
lines changed

source/FreeRTOS_IP_Utils.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,13 @@ static void prvChecksumProtocolSetChecksum( BaseType_t xOutgoingPacket,
129129
size_t uxBufferLength,
130130
struct xPacketSummary * pxSet );
131131

132-
static void prvSetChecksumInPacket( struct xPacketSummary * pxSet, uint16_t usChecksum );
132+
static void prvSetChecksumInPacket( struct xPacketSummary * pxSet,
133+
uint16_t usChecksum );
133134

134135
static uint16_t prvGetChecksumFromPacket( const struct xPacketSummary * pxSet );
135136

136-
static void prvSetChecksumInPacket( struct xPacketSummary * pxSet, uint16_t usChecksum )
137+
static void prvSetChecksumInPacket( struct xPacketSummary * pxSet,
138+
uint16_t usChecksum )
137139
{
138140
if( pxSet->ucProtocol == ( uint8_t ) ipPROTOCOL_UDP )
139141
{
@@ -160,7 +162,6 @@ static void prvSetChecksumInPacket( struct xPacketSummary * pxSet, uint16_t usCh
160162

161163
static uint16_t prvGetChecksumFromPacket( const struct xPacketSummary * pxSet )
162164
{
163-
164165
uint16_t usChecksum;
165166

166167
if( pxSet->ucProtocol == ( uint8_t ) ipPROTOCOL_UDP )

source/include/FreeRTOS_Sockets.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@
180180
IP_Address_t sin_address; /**< The IPv4/IPv6 address. */
181181
};
182182

183-
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
183+
#if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
184184

185-
#define sin_addr sin_address.ulIP_IPv4
185+
#define sin_addr sin_address.ulIP_IPv4
186186

187-
#endif
187+
#endif
188188

189189
/** Introduce a short name to make casting easier. */
190190
typedef struct freertos_sockaddr xFreertosSocAddr;

test/build-combination/AllEnable/FreeRTOSIPConfig.h

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -34,33 +34,33 @@
3434
#ifndef FREERTOS_IP_CONFIG_H
3535
#define FREERTOS_IP_CONFIG_H
3636

37-
#define ipconfigUSE_DHCPv6 1
38-
#define ipconfigIPv4_BACKWARD_COMPATIBLE 1
39-
#define ipconfigUSE_ARP_REVERSED_LOOKUP 1
40-
#define ipconfigUSE_ARP_REMOVE_ENTRY 1
41-
#define ipconfigARP_STORES_REMOTE_ADDRESSES 1
42-
#define ipconfigUSE_LINKED_RX_MESSAGES 1
43-
#define ipconfigFORCE_IP_DONT_FRAGMENT 1
44-
#define ipconfigUDP_PASS_ZERO_CHECKSUM_PACKETS 1
45-
#define ipconfigDHCP_FALL_BACK_AUTO_IP 1
46-
#define ipconfigARP_USE_CLASH_DETECTION 1
47-
#define ipconfigUSE_LLMNR 1
48-
#define ipconfigUSE_NBNS 1
49-
#define ipconfigUSE_MDNS 1
50-
#define ipconfigSUPPORT_OUTGOING_PINGS 1
51-
#define ipconfigETHERNET_DRIVER_FILTERS_PACKETS 1
52-
#define ipconfigZERO_COPY_TX_DRIVER 1
53-
#define ipconfigZERO_COPY_RX_DRIVER 1
54-
#define ipconfigDRIVER_INCLUDED_TX_IP_CHECKSUM 1
55-
#define ipconfigSOCKET_HAS_USER_SEMAPHORE 1
56-
#define ipconfigSELECT_USES_NOTIFY 1
57-
#define ipconfigSUPPORT_SIGNALS 1
58-
#define ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES 1
37+
#define ipconfigUSE_DHCPv6 1
38+
#define ipconfigIPv4_BACKWARD_COMPATIBLE 1
39+
#define ipconfigUSE_ARP_REVERSED_LOOKUP 1
40+
#define ipconfigUSE_ARP_REMOVE_ENTRY 1
41+
#define ipconfigARP_STORES_REMOTE_ADDRESSES 1
42+
#define ipconfigUSE_LINKED_RX_MESSAGES 1
43+
#define ipconfigFORCE_IP_DONT_FRAGMENT 1
44+
#define ipconfigUDP_PASS_ZERO_CHECKSUM_PACKETS 1
45+
#define ipconfigDHCP_FALL_BACK_AUTO_IP 1
46+
#define ipconfigARP_USE_CLASH_DETECTION 1
47+
#define ipconfigUSE_LLMNR 1
48+
#define ipconfigUSE_NBNS 1
49+
#define ipconfigUSE_MDNS 1
50+
#define ipconfigSUPPORT_OUTGOING_PINGS 1
51+
#define ipconfigETHERNET_DRIVER_FILTERS_PACKETS 1
52+
#define ipconfigZERO_COPY_TX_DRIVER 1
53+
#define ipconfigZERO_COPY_RX_DRIVER 1
54+
#define ipconfigDRIVER_INCLUDED_TX_IP_CHECKSUM 1
55+
#define ipconfigSOCKET_HAS_USER_SEMAPHORE 1
56+
#define ipconfigSELECT_USES_NOTIFY 1
57+
#define ipconfigSUPPORT_SIGNALS 1
58+
#define ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES 1
5959

6060
/* Set to 1 to print out debug messages. If ipconfigHAS_DEBUG_PRINTF is set to
6161
* 1 then FreeRTOS_debug_printf should be defined to the function used to print
6262
* out the debugging messages. */
63-
#define ipconfigHAS_DEBUG_PRINTF 1
63+
#define ipconfigHAS_DEBUG_PRINTF 1
6464
#if ( ipconfigHAS_DEBUG_PRINTF == 1 )
6565
#define FreeRTOS_debug_printf( X ) configPRINTF( X )
6666
#endif

test/build-combination/Common/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ struct xNetworkInterface * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
349349
}
350350
#endif
351351

352-
#if ( ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES != 0)
352+
#if ( ipconfigPROCESS_CUSTOM_ETHERNET_FRAMES != 0 )
353353

354354
/*
355355
* The stack will call this user hook for all Ethernet frames that it
@@ -363,7 +363,7 @@ struct xNetworkInterface * pxFillInterfaceDescriptor( BaseType_t xEMACIndex,
363363
*/
364364
eFrameProcessingResult_t eApplicationProcessCustomFrameHook( NetworkBufferDescriptor_t * const pxNetworkBuffer )
365365
{
366-
(void) (pxNetworkBuffer);
366+
( void ) ( pxNetworkBuffer );
367367
return eProcessBuffer;
368368
}
369369

0 commit comments

Comments
 (0)