zhhyu7 opened a new pull request, #3391:
URL: https://github.com/apache/nuttx-apps/pull/3391

   ## Summary
   removes redundant type casts in ARP-related network library functions. The 
casts from req.arp_dev (already a char array) to (FAR char *) are unnecessary 
and can be safely removed.
   
   ## Impact
   Code cleanup only, no functional changes;
   Improves code readability by removing unnecessary casts.
   
   ## Testing
   sim:matter
   - [*] Build tested
   - [*] Functional testing of ARP commands
   NuttX test log
   ```
   NuttShell (NSH) NuttX-12.12.0
   MOTD: username=admin password=Administrator
   nsh> 
   nsh> arp
   IP Address   Ethernet Address  Interface
   nsh> help arp
   arp usage:  arp [-i <ifname>] [-a <ipaddr>|-d <ipaddr>|-s <ipaddr> <hwaddr>]
   nsh> arp -i eth0 -s 10.0.1.3 00:11:22:33:44:55
   nsh> arp
   IP Address   Ethernet Address  Interface
   10.0.1.3     00:11:22:33:44:55 eth0
   nsh> arp -i eth0
   IP Address   Ethernet Address  Interface
   10.0.1.3     00:11:22:33:44:55 eth0
   nsh> arp -a 10.0.1.3
   HWaddr: 00:11:22:33:44:55
   nsh> arp -d 10.0.1.3
   nsh> arp -a 10.0.1.3
   nsh: arp: no such ARP entry: 10.0.1.3
   nsh> arp -i eth0
   IP Address   Ethernet Address  Interface
   nsh> arp
   IP Address   Ethernet Address  Interface
   nsh> 
   ```
   
   


-- 
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]

Reply via email to