zhhyu7 opened a new pull request, #4194:
URL: https://github.com/apache/nuttx-apps/pull/4194
## Summary
void * converts implicitly to any object pointer in C. Drop the
explicit (struct dhcpc_state_s *) / (struct dhcp6c_state_s *) casts on
the handle and args parameters. No functional change.
## Impact
None (source cleanup).
## Testing
sim:dynconns + CONFIG_NETUTILS_DHCPC + SYSTEM_DHCPC_RENEW on the nuttx0
bridge, dnsmasq on the host as DHCP server. Two "renew eth0" runs (each one
completes DISCOVER/OFFER/REQUEST/ACK):
```
ifconfig eth0 0.0.0.0
nsh> renew eth0
nsh> ifconfig eth0
eth0 Link encap:Ethernet HWaddr 42:ec:03:fd:66:d6 at RUNNING mtu 1500
inet addr:10.0.1.113 DRaddr:10.0.1.1 Mask:255.255.255.0
nsh> renew eth0
nsh> ifconfig eth0
eth0 Link encap:Ethernet HWaddr 42:ec:03:fd:66:d6 at RUNNING mtu 1500
inet addr:10.0.1.113 DRaddr:10.0.1.1 Mask:255.255.255.0
nsh>
(host dnsmasq log)
dnsmasq-dhcp: 2446564299 DHCPDISCOVER(nuttx0) 42:ec:03:fd:66:d6
dnsmasq-dhcp: 2446564299 DHCPOFFER(nuttx0) 10.0.1.113 42:ec:03:fd:66:d6
dnsmasq-dhcp: 2446564299 DHCPDISCOVER(nuttx0) 42:ec:03:fd:66:d6
dnsmasq-dhcp: 2446564299 DHCPOFFER(nuttx0) 10.0.1.113 42:ec:03:fd:66:d6
dnsmasq-dhcp: 2446564299 DHCPREQUEST(nuttx0) 10.0.1.113 42:ec:03:fd:66:d6
dnsmasq-dhcp: 2446564299 DHCPACK(nuttx0) 10.0.1.113 42:ec:03:fd:66:d6 nuttx
dnsmasq-dhcp: 3993675596 DHCPDISCOVER(nuttx0) 42:ec:03:fd:66:d6
dnsmasq-dhcp: 3993675596 DHCPOFFER(nuttx0) 10.0.1.113 42:ec:03:fd:66:d6
dnsmasq-dhcp: 3993675596 DHCPREQUEST(nuttx0) 10.0.1.113 42:ec:03:fd:66:d6
dnsmasq-dhcp: 3993675596 DHCPACK(nuttx0) 10.0.1.113 42:ec:03:fd:66:d6 nuttx
```
checkpatch.sh -c -u -m -g passes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]