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

2016-01-21 Thread Lipi C. H. Lee
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

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

2016-01-21 Thread enh
i'm pretty sure a lot of the reformatting here doesn't match rob's intended style. it would be nice to have a .clang-format checked in that's close enough to rob's intended style that we can just automate this to be "good enough" and forget about it... On Thu, Jan 21, 2016 at 2:04 AM, Lipi C. H.

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

2016-01-21 Thread Rob Landley
On Thu, Jan 21, 2016 at 4:04 AM, Lipi C. H. Lee wrote: > 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