OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 245... Line 245...
245 -void _init(void) 245 -void _init(void)
246 +__attribute__((constructor)) static void extension_init(void) 246 +__attribute__((constructor)) static void extension_init(void)
247 { 247 {
248 ebt_register_table(&table); 248 ebt_register_table(&table);
249 } 249 }
250 --- a/extensions/ebt_string.c -  
251 +++ b/extensions/ebt_string.c -  
252 @@ -312,7 +312,7 @@ static struct ebt_u_match string_match = -  
253 .extra_ops = opts, -  
254 }; -  
255 -  
256 -void _init(void) -  
257 +__attribute__((constructor)) static void extension_init(void) -  
258 { -  
259 ebt_register_match(&string_match); -  
260 } -