mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-15 01:07:47 -04:00
Address various MISRA warnings v3 (#240)
* Add a branch and make MISRA changes * initialize the value * Update after Gary's comments
This commit is contained in:
parent
cacf4ad7f9
commit
05b4d4fc64
3 changed files with 16 additions and 9 deletions
|
@ -2678,6 +2678,8 @@ const TCPWindow_t *pxTCPWindow = &pxSocket->u.xTCP.xTCPWindow;
|
|||
/* Find out what window size we may advertised. */
|
||||
int32_t lRxSpace;
|
||||
BaseType_t xSendLength = xByteCount;
|
||||
uint32_t ulRxBufferSpace;
|
||||
|
||||
#if( ipconfigUSE_TCP_WIN == 1 )
|
||||
#if( ipconfigTCP_ACK_EARLIER_PACKET == 0 )
|
||||
const int32_t lMinLength = 0;
|
||||
|
@ -2688,7 +2690,9 @@ BaseType_t xSendLength = xByteCount;
|
|||
|
||||
/* Set the time-out field, so that we'll be called by the IP-task in case no
|
||||
next message will be received. */
|
||||
lRxSpace = ipNUMERIC_CAST( int32_t, pxSocket->u.xTCP.ulHighestRxAllowed - pxTCPWindow->rx.ulCurrentSequenceNumber );
|
||||
ulRxBufferSpace = pxSocket->u.xTCP.ulHighestRxAllowed - pxTCPWindow->rx.ulCurrentSequenceNumber;
|
||||
lRxSpace = ( int32_t ) ulRxBufferSpace;
|
||||
|
||||
#if ipconfigUSE_TCP_WIN == 1
|
||||
{
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue