Corrected the formatting

- visual studio had messed up the formatting
This commit is contained in:
AniruddhaKanhere
2020-04-08 14:07:39 -07:00
committed by Yuhui Zheng
parent c381861014
commit a9fcafc074

View File

@ -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 )