summaryrefslogtreecommitdiffstats
path: root/src/rt.c
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-07-17 13:59:07 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2017-07-17 14:26:31 +0200
commitd2b93afad7a67840d16d424b3cf5ce5255fca7ad (patch)
tree739c88495c1b33f9066bd38aa0545a88b25042f7 /src/rt.c
parente0146fa254496dc12187053cd0cd6e5d20eb6a43 (diff)
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 <rvarsha016@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/rt.c')
-rw-r--r--src/rt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rt.c b/src/rt.c
index 530ebe6e..cd2d5a4e 100644
--- a/src/rt.c
+++ b/src/rt.c
@@ -24,12 +24,12 @@
#include <rule.h>
static struct symbol_table *realm_tbl;
-static void __init realm_table_init(void)
+void realm_table_rt_init(void)
{
realm_tbl = rt_symbol_table_init("/etc/iproute2/rt_realms");
}
-static void __exit realm_table_exit(void)
+void realm_table_rt_exit(void)
{
rt_symbol_table_free(realm_tbl);
}