mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 18:27:47 -04:00
Address MISRA errors of various kinds (#234)
* MISRA 21.15 changes * MISRA 11.8 changes
This commit is contained in:
parent
a72f040861
commit
0341050048
7 changed files with 44 additions and 44 deletions
|
@ -846,7 +846,7 @@ static const DNSMessage_t xDefaultPartDNSHeader =
|
|||
|
||||
/* Copy in the const part of the header. Intentionally using different
|
||||
* pointers with memcpy() to put the information in to correct place. */
|
||||
( void ) memcpy( pucUDPPayloadBuffer, &( xDefaultPartDNSHeader ), sizeof( xDefaultPartDNSHeader ) );
|
||||
( void ) memcpy( ( void * ) pucUDPPayloadBuffer, ( const void * ) ( &( xDefaultPartDNSHeader ) ), sizeof( xDefaultPartDNSHeader ) );
|
||||
|
||||
/* Write in a unique identifier. Cast the Payload Buffer to DNSMessage_t
|
||||
* to easily access fields of the DNS Message. */
|
||||
|
@ -1308,8 +1308,8 @@ BaseType_t xReturn = pdTRUE;
|
|||
{
|
||||
/* Copy the IP address out of the record. Using different pointers
|
||||
* to copy only the portion we want is intentional here. */
|
||||
( void ) memcpy( &( ulIPAddress ),
|
||||
&( pucByte[ sizeof( DNSAnswerRecord_t ) ] ),
|
||||
( void ) memcpy( ( void * ) ( &( ulIPAddress ) ),
|
||||
( const void * ) ( &( pucByte[ sizeof( DNSAnswerRecord_t ) ] ) ),
|
||||
sizeof( uint32_t ) );
|
||||
|
||||
#if( ipconfigDNS_USE_CALLBACKS == 1 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue