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/gmputil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gmputil.c') diff --git a/src/gmputil.c b/src/gmputil.c index c7637927..844ea618 100644 --- a/src/gmputil.c +++ b/src/gmputil.c @@ -207,7 +207,7 @@ static void *gmp_xrealloc(void *ptr, size_t old_size, size_t new_size) return xrealloc(ptr, new_size); } -static void __init gmp_init(void) +void gmp_init(void) { mp_set_memory_functions(xmalloc, gmp_xrealloc, NULL); } -- cgit v1.2.3