svn commit: trunk/busybox/networking/libiproute

Bernhard Fischer rep.dot.nop at gmail.com
Sun Jan 28 11:13:33 UTC 2007


On Sun, Jan 28, 2007 at 02:08:43AM +0100, Denis Vlasenko wrote:
>On Sunday 28 January 2007 01:20, aldot at busybox.net wrote:
>> -	static const char * const ip_rule_commands[] =
>> +	const char * const ip_rule_commands[] =
>>  		{"add", "delete", "list", "show", 0};
>
>Why? Although sufficiently clever compiler can notice
>that ip_rule_commands[] is an array of constants
>and therefore can be made "static" behind the scenes,
>I do not know which version of gcc started to do it.
>
>Let people with gcc's older than that have smaller code too

Fair enough. Reverting that hunk. Thanks for the heads-up.



More information about the busybox mailing list