mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-16 09:34:56 +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:
@@ -116,8 +116,7 @@ static struct xtables_match portscan_mt_reg = {
|
||||
.extra_opts = portscan_mt_opts,
|
||||
};
|
||||
|
||||
void _init(void);
|
||||
void _init(void)
|
||||
static __attribute__((constructor)) void portscan_mt_ldr(void)
|
||||
{
|
||||
xtables_register_match(&portscan_mt_reg);
|
||||
}
|
||||
|
Reference in New Issue
Block a user