mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-19 14:54:28 +08:00
Corrected the formatting
- visual studio had messed up the formatting
This commit is contained in:

committed by
Yuhui Zheng

parent
c381861014
commit
a9fcafc074
@ -85,16 +85,12 @@ BaseType_t xARPHadIPClash;
|
||||
MACAddress_t xARPClashMacAddress;
|
||||
#endif /* ipconfigARP_USE_CLASH_DETECTION */
|
||||
|
||||
|
||||
/* Part of the Ethernet and ARP headers are always constant when sending an IPv4
|
||||
ARP packet. This array defines the constant parts, allowing this part of the
|
||||
packet to be filled in using a simple memcpy() instead of individual writes. */
|
||||
|
||||
/* MISRA c2012 rule 8.9 violation: "xDefaultPartARPPacketHeader" should be defined at block
|
||||
* scope.
|
||||
* Rule has been relaxed since this is a configuration parameter. And this location provides
|
||||
* more readability.
|
||||
*/
|
||||
/* Rule has been relaxed since this is a configuration parameter. And this location provides
|
||||
* more readability. */
|
||||
/* coverity[misra_c_2012_rule_8_9_violation] */
|
||||
static const uint8_t xDefaultPartARPPacketHeader[] =
|
||||
{
|
||||
@ -330,7 +326,7 @@ void vARPRefreshCacheEntry(const MACAddress_t* pxMACAddress, const uint32_t ulIP
|
||||
/* Both the MAC address as well as the IP address were found in
|
||||
different locations: clear the entry which matches the
|
||||
IP-address */
|
||||
memset(&xARPCache[xIpEntry], (int)'\0', sizeof(xARPCache[xIpEntry]));
|
||||
memset( &xARPCache[ xIpEntry ], 0, sizeof( xARPCache[ xIpEntry ] ) );
|
||||
}
|
||||
}
|
||||
else if ( xIpEntry >= 0 )
|
||||
|
Reference in New Issue
Block a user