mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 10:17:45 -04:00
Address various MISRA warnings v2 (#238)
* Address some MISRA warnings * Change the return type * Update FreeRTOS_Sockets.c
This commit is contained in:
parent
0341050048
commit
cacf4ad7f9
5 changed files with 20 additions and 14 deletions
|
@ -1252,10 +1252,16 @@ BaseType_t xReturn = pdTRUE;
|
|||
const uint16_t usCount = ( uint16_t ) ipconfigDNS_CACHE_ADDRESSES_PER_ENTRY;
|
||||
uint16_t usNumARecordsStored = 0;
|
||||
|
||||
for( x = 0U; ( x < pxDNSMessageHeader->usAnswers ) && ( usNumARecordsStored < usCount ); x++ )
|
||||
for( x = 0U; x < pxDNSMessageHeader->usAnswers; x++ )
|
||||
{
|
||||
BaseType_t xDoAccept;
|
||||
|
||||
if( usNumARecordsStored >= usCount )
|
||||
{
|
||||
/* Only count ipconfigDNS_CACHE_ADDRESSES_PER_ENTRY number of records. */
|
||||
break;
|
||||
}
|
||||
|
||||
uxResult = prvSkipNameField( pucByte,
|
||||
uxSourceBytesRemaining );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue