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/fib.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/fib.c') diff --git a/src/fib.c b/src/fib.c index 28d2b1d9..b3488aff 100644 --- a/src/fib.c +++ b/src/fib.c @@ -42,7 +42,7 @@ static const struct symbol_table addrtype_tbl = { } }; -static const struct datatype fib_addr_type = { +const struct datatype fib_addr_type = { .type = TYPE_FIB_ADDR, .name = "fib_addrtype", .desc = "fib address type", @@ -141,8 +141,3 @@ struct expr *fib_expr_alloc(const struct location *loc, return expr; } - -static void __init fib_init(void) -{ - datatype_register(&fib_addr_type); -} -- cgit v1.2.3