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/rt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/rt.c') diff --git a/src/rt.c b/src/rt.c index eb5f9c33..530ebe6e 100644 --- a/src/rt.c +++ b/src/rt.c @@ -45,7 +45,7 @@ static struct error_record *realm_type_parse(const struct expr *sym, return symbolic_constant_parse(sym, realm_tbl, res); } -static const struct datatype realm_type = { +const struct datatype realm_type = { .type = TYPE_REALM, .name = "realm", .desc = "routing realm", @@ -134,8 +134,3 @@ void rt_expr_update_type(struct proto_ctx *ctx, struct expr *expr) break; } } - -static void __init rt_init(void) -{ - datatype_register(&realm_type); -} -- cgit v1.2.3