summaryrefslogtreecommitdiffstats
path: root/src/rt.c
diff options
context:
space:
mode:
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);
-}