From: Barış Metin Date: Fri, 15 Jan 2010 10:57:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: iptables-1.3.8-10~3 X-Git-Url: http://git.onelab.eu/?p=iptables.git;a=commitdiff_plain;h=6fa4898a0e0ee0a5d165f581b3599a12726f575f --- diff --git a/ipset/ipset_iphash.c b/ipset/ipset_iphash.c index c8b400c..78a537b 100644 --- a/ipset/ipset_iphash.c +++ b/ipset/ipset_iphash.c @@ -290,7 +290,7 @@ static struct settype settype_iphash = { .usage = &usage, }; -void _init(void) +void __attribute__ ((constructor)) my_init(void) { settype_register(&settype_iphash); diff --git a/ipset/ipset_ipporthash.c b/ipset/ipset_ipporthash.c index 684e6c2..dbe8e57 100644 --- a/ipset/ipset_ipporthash.c +++ b/ipset/ipset_ipporthash.c @@ -366,7 +366,7 @@ static struct settype settype_ipporthash = { .usage = &usage, }; -void _init(void) +void __attribute__ ((constructor)) my_init(void) { settype_register(&settype_ipporthash); diff --git a/ipset/ipset_iptree.c b/ipset/ipset_iptree.c index b68601a..5c7b5c6 100644 --- a/ipset/ipset_iptree.c +++ b/ipset/ipset_iptree.c @@ -217,7 +217,7 @@ static struct settype settype_iptree = { .usage = &usage, }; -void _init(void) +void __attribute__ ((constructor)) my_init(void) { settype_register(&settype_iptree); diff --git a/ipset/ipset_macipmap.c b/ipset/ipset_macipmap.c index 3385f19..236de39 100644 --- a/ipset/ipset_macipmap.c +++ b/ipset/ipset_macipmap.c @@ -332,7 +332,7 @@ static struct settype settype_macipmap = { .usage = &usage, }; -void _init(void) +void __attribute__ ((constructor)) my_init(void) { settype_register(&settype_macipmap); diff --git a/ipset/ipset_nethash.c b/ipset/ipset_nethash.c index 8744368..5d46be2 100644 --- a/ipset/ipset_nethash.c +++ b/ipset/ipset_nethash.c @@ -359,7 +359,7 @@ static struct settype settype_nethash = { .usage = &usage, }; -void _init(void) +void __attribute__ ((constructor)) my_init(void) { settype_register(&settype_nethash); diff --git a/ipset/ipset_portmap.c b/ipset/ipset_portmap.c index 1d4f807..ec08239 100644 --- a/ipset/ipset_portmap.c +++ b/ipset/ipset_portmap.c @@ -237,7 +237,7 @@ static struct settype settype_portmap = { .usage = &usage, }; -void _init(void) +void __attribute__ ((constructor)) my_init(void) { settype_register(&settype_portmap);