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:
Jan Engelhardt
2008-11-20 20:00:26 +01:00
parent a8f60d0d4b
commit aab8dd360f
16 changed files with 17 additions and 21 deletions

View File

@@ -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);
}