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/exthdr.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/exthdr.c')
-rw-r--r-- | src/exthdr.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/exthdr.c b/src/exthdr.c index f31deea5..a678115b 100644 --- a/src/exthdr.c +++ b/src/exthdr.c @@ -322,7 +322,7 @@ static const struct symbol_table mh_type_tbl = { }, }; -static const struct datatype mh_type_type = { +const struct datatype mh_type_type = { .type = TYPE_MH_TYPE, .name = "mh_type", .desc = "Mobility Header Type", @@ -343,8 +343,3 @@ const struct exthdr_desc exthdr_mh = { [MHHDR_CHECKSUM] = MH_FIELD("checksum", ip6mh_cksum, &integer_type), }, }; - -static void __init exthdr_init(void) -{ - datatype_register(&mh_type_type); -} |