mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-05 20:26:38 +02: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:
@@ -41,8 +41,7 @@ static struct xtables_target delude_tg_reg = {
|
||||
.final_check = delude_tg_check,
|
||||
};
|
||||
|
||||
void _init(void);
|
||||
void _init(void)
|
||||
static __attribute__((constructor)) void delude_tg_ldr(void)
|
||||
{
|
||||
xtables_register_target(&delude_tg_reg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user