[BusyBox] networking/ping.c: clean up [PATCH]

Rob Landley rob at landley.net
Tue May 3 23:32:49 UTC 2005


On Tuesday 03 May 2005 05:55 pm, Shaun Jackman wrote:
> Add a CONFIG_FEATURE_CLEAN_UP stanza to ping. Make use of symbolic
> constants when calculating packet sizes.

Hmmm...

Globals have a bss hit in all running instances, but local variables only 
consume stack memory when they're actually used.  Bit ambivalent about that.   
(Yeah, this instance is only 4 bytes but I'm thinking of doing a global 
trimming pass in a bit to see if I can squeeze some size down.)

Is making it a global really required here?  (Not familiar with the ping 
code...)

Rob



More information about the busybox mailing list