From 27168fce20714e6bb7878e8d58c53b3d086a88a4 Mon Sep 17 00:00:00 2001 From: Monika Singh Date: Thu, 8 Jun 2023 07:13:26 +0000 Subject: [PATCH] Update according to C90 standard --- source/include/FreeRTOS_IP_Private.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/source/include/FreeRTOS_IP_Private.h b/source/include/FreeRTOS_IP_Private.h index e92bbd31b5..1ea544339d 100644 --- a/source/include/FreeRTOS_IP_Private.h +++ b/source/include/FreeRTOS_IP_Private.h @@ -536,15 +536,15 @@ BaseType_t xIPIsNetworkTaskReady( void ); { struct { - uint64_t ullAlignmentWord; /**< Increase the alignment of this union by adding a 64-bit variable. */ + uint32_t ullAlignmentWord; /**< Increase the alignment of this union by adding a 32-bit variable. */ } a; /**< A struct to increase alignment. */ struct { /* The next field only serves to give 'ucLastPacket' a correct - * alignment of 8 + 2. See comments in FreeRTOS_IP.h */ + * alignment of 4 + 2. See comments in FreeRTOS_IP.h */ uint8_t ucFillPacket[ ipconfigPACKET_FILLER_SIZE ]; uint8_t ucLastPacket[ sizeof( TCPPacket_t ) ]; - } u; /**< The structure to give an alignment of 8 + 2 */ + } u; /**< The structure to give an alignment of 4 + 2 */ } LastTCPPacket_t; /** @@ -709,14 +709,11 @@ typedef struct xSOCKET union { - IPUDPSocket_t xUDP; /**< Union member: UDP socket*/ + IPUDPSocket_t xUDP; /**< Union member: UDP socket*/ #if ( ipconfigUSE_TCP == 1 ) - IPTCPSocket_t xTCP; /**< Union member: TCP socket */ - - uint64_t ullTCPAlignment; /**< Make sure that xTCP is 8-bytes aligned by - * declaring a 64-bit variable in the same union */ + IPTCPSocket_t xTCP; /**< Union member: TCP socket */ #endif /* ipconfigUSE_TCP */ - } u; /**< Union of TCP/UDP socket */ + } u; /**< Union of TCP/UDP socket */ } FreeRTOS_Socket_t; #if ( ipconfigUSE_TCP == 1 )