diff options
author | Varsha Rao <rvarsha016@gmail.com> | 2017-06-30 14:56:19 +0530 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-06-30 12:44:54 +0200 |
commit | 5de112c239ab97ebaba5a935d29504bff0586be7 (patch) | |
tree | fa0845522c9e37e8f77fd3a245ab58826f5625e0 /src/ct.c | |
parent | 27e4cf73880b7103bffb747cdce8f9eb10e03b39 (diff) |
include: Remove datatype_register().
Remove datatype_register() function and its calling __init functions.
Add arguments of datatype_register() function to datatype array.
Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/ct.c')
-rw-r--r-- | src/ct.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -44,7 +44,7 @@ static const struct symbol_table ct_state_tbl = { } }; -static const struct datatype ct_state_type = { +const struct datatype ct_state_type = { .type = TYPE_CT_STATE, .name = "ct_state", .desc = "conntrack state", @@ -63,7 +63,7 @@ static const struct symbol_table ct_dir_tbl = { } }; -static const struct datatype ct_dir_type = { +const struct datatype ct_dir_type = { .type = TYPE_CT_DIR, .name = "ct_dir", .desc = "conntrack direction", @@ -90,7 +90,7 @@ static const struct symbol_table ct_status_tbl = { }, }; -static const struct datatype ct_status_type = { +const struct datatype ct_status_type = { .type = TYPE_CT_STATUS, .name = "ct_status", .desc = "conntrack status", @@ -485,10 +485,3 @@ struct stmt *notrack_stmt_alloc(const struct location *loc) { return stmt_alloc(loc, ¬rack_stmt_ops); } - -static void __init ct_init(void) -{ - datatype_register(&ct_state_type); - datatype_register(&ct_dir_type); - datatype_register(&ct_status_type); -} |