fix cppcheck warnings
This commit is contained in:
1136
cppcheck.txt
Normal file
1136
cppcheck.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -26,9 +26,12 @@ int DhcpClass::beginWithDHCP(uint8_t *mac, unsigned long timeout, unsigned long
|
|||||||
void DhcpClass::reset_DHCP_lease()
|
void DhcpClass::reset_DHCP_lease()
|
||||||
{
|
{
|
||||||
// zero out _dhcpSubnetMask, _dhcpGatewayIp, _dhcpLocalIp, _dhcpDhcpServerIp, _dhcpDnsServerIp
|
// zero out _dhcpSubnetMask, _dhcpGatewayIp, _dhcpLocalIp, _dhcpDhcpServerIp, _dhcpDnsServerIp
|
||||||
memset(_dhcpLocalIp, 0, 20);
|
memset(_dhcpLocalIp, 0, sizeof(_dhcpLocalIp));
|
||||||
|
memset(_dhcpGatewayIp, 0, sizeof(_dhcpGatewayIp));
|
||||||
|
memset(_dhcpSubnetMask, 0, sizeof(_dhcpSubnetMask));
|
||||||
|
memset(_dhcpDnsServerIp, 0, sizeof(_dhcpDnsServerIp));
|
||||||
|
memset(_dhcpLocalIp, 0, sizeof(_dhcpLocalIp));
|
||||||
}
|
}
|
||||||
|
|
||||||
//return:0 on error, 1 if request is sent and response is received
|
//return:0 on error, 1 if request is sent and response is received
|
||||||
int DhcpClass::request_DHCP_lease()
|
int DhcpClass::request_DHCP_lease()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user