mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-12-07 08:33:53 +01:00
src: avoid use of _init
Xtables-addons's extensions will always be built as modules, so it is safe to use __attribute__((constructor)).
This commit is contained in:
@@ -133,7 +133,7 @@ static struct xtables_match quota_mt2_reg = {
|
||||
.extra_opts = quota_mt2_opts,
|
||||
};
|
||||
|
||||
static void _init(void)
|
||||
static __attribute__((constructor)) void quota2_mt_ldr(void)
|
||||
{
|
||||
xtables_register_match("a_mt2_reg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user