mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 21:25:12 +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:
@@ -43,7 +43,7 @@ static struct xtables_target sysrq_tg6_reg = {
|
||||
.final_check = sysrq_tg_check,
|
||||
};
|
||||
|
||||
static void _init(void)
|
||||
static __attribute__((constructor)) void sysrq_tg_ldr(void)
|
||||
{
|
||||
xtables_register_target(&sysrq_tg4_reg);
|
||||
xtables_register_target(&sysrq_tg6_reg);
|
||||
|
Reference in New Issue
Block a user