mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 02:07:48 -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
|
@ -154,7 +154,7 @@ size_t uxPayloadSize;
|
|||
*/
|
||||
/* The Ethernet source address is at offset 6. */
|
||||
char *pxUdpSrcAddrOffset = ( char *) ( &( pxNetworkBuffer->pucEthernetBuffer[ sizeof( MACAddress_t ) ] ) );
|
||||
( void ) memcpy( pxUdpSrcAddrOffset, xDefaultPartUDPPacketHeader.ucBytes, sizeof( xDefaultPartUDPPacketHeader ) );
|
||||
( void ) memcpy( ( void * ) pxUdpSrcAddrOffset, ( const void * ) ( xDefaultPartUDPPacketHeader.ucBytes ), sizeof( xDefaultPartUDPPacketHeader ) );
|
||||
|
||||
#if ipconfigSUPPORT_OUTGOING_PINGS == 1
|
||||
if( pxNetworkBuffer->usPort == ( uint16_t ) ipPACKET_CONTAINS_ICMP_DATA )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue