From d2b93afad7a67840d16d424b3cf5ce5255fca7ad Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Mon, 17 Jul 2017 13:59:07 +0200 Subject: src: Remove __init and __exit macro definitions. Add nft_init and nft_exit functions, which calls _init and _exit functions in main.c file. Remove __init and __exit macro definitions as libnftables library will be created soon. Rename realm_table_init() and realm_table_exit() functions to avoid ambiguity as realm_table_rt_init(), realm_table_meta_init, realm_table_rt_exit() and realm_table_meta_exit() in rt.c and meta.c files. Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- src/ct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ct.c') diff --git a/src/ct.c b/src/ct.c index 9b7140b3..d64f4672 100644 --- a/src/ct.c +++ b/src/ct.c @@ -205,12 +205,12 @@ static const struct datatype ct_label_type = { .parse = ct_label_type_parse, }; -static void __init ct_label_table_init(void) +void ct_label_table_init(void) { ct_label_tbl = rt_symbol_table_init(CONNLABEL_CONF); } -static void __exit ct_label_table_exit(void) +void ct_label_table_exit(void) { rt_symbol_table_free(ct_label_tbl); } -- cgit v1.2.3