[Toybox] [toybox] cleanup in 'netstat.c'

Lipi C. H. Lee lipisoft at gmail.com
Thu Jan 21 02:04:15 PST 2016


Hi, Rob.

I cleaned up the code in 'netstat.c' as belows.

 - Adjust to 80 columns
 - remove a useless function(strchr_nul), variable, type casting and
compile warnings(fgets)
 - clean up netstat command option condition
 - change useless double pointer to single point and dynamic memory
allocation to static one
 - fix a ambiguous return type and typo

Can you review it?

Thanks

Lipi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160121/a512902d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: netstat.patch
Type: application/octet-stream
Size: 18945 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160121/a512902d/attachment.obj>


More information about the Toybox mailing list