summaryrefslogtreecommitdiffstats
path: root/src/rt.c
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-06-30 14:56:19 +0530
committerPablo Neira Ayuso <pablo@netfilter.org>2017-06-30 12:44:54 +0200
commit5de112c239ab97ebaba5a935d29504bff0586be7 (patch)
treefa0845522c9e37e8f77fd3a245ab58826f5625e0 /src/rt.c
parent27e4cf73880b7103bffb747cdce8f9eb10e03b39 (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/rt.c')
-rw-r--r--src/rt.c7
1 files changed, 1 insertions, 6 deletions
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);
-}