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/meta.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/meta.c') diff --git a/src/meta.c b/src/meta.c index e9334b86..9c808930 100644 --- a/src/meta.c +++ b/src/meta.c @@ -37,12 +37,12 @@ #include static struct symbol_table *realm_tbl; -static void __init realm_table_init(void) +void realm_table_meta_init(void) { realm_tbl = rt_symbol_table_init("/etc/iproute2/rt_realms"); } -static void __exit realm_table_exit(void) +void realm_table_meta_exit(void) { rt_symbol_table_free(realm_tbl); } @@ -333,12 +333,12 @@ const struct datatype pkttype_type = { }; static struct symbol_table *devgroup_tbl; -static void __init devgroup_table_init(void) +void devgroup_table_init(void) { devgroup_tbl = rt_symbol_table_init("/etc/iproute2/group"); } -static void __exit devgroup_table_exit(void) +void devgroup_table_exit(void) { rt_symbol_table_free(devgroup_tbl); } -- cgit v1.2.3