From 5de112c239ab97ebaba5a935d29504bff0586be7 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Fri, 30 Jun 2017 14:56:19 +0530 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- src/exthdr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/exthdr.c') 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); -} -- cgit v1.2.3