diff options
-rw-r--r-- | include/nftables.h | 1 | ||||
-rw-r--r-- | src/gmputil.c | 10 | ||||
-rw-r--r-- | src/libnftables.c | 1 |
3 files changed, 0 insertions, 12 deletions
diff --git a/include/nftables.h b/include/nftables.h index b9b2b01c..4b7c3359 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -224,7 +224,6 @@ struct input_descriptor { void ct_label_table_init(struct nft_ctx *ctx); void mark_table_init(struct nft_ctx *ctx); -void gmp_init(void); void realm_table_rt_init(struct nft_ctx *ctx); void devgroup_table_init(struct nft_ctx *ctx); void xt_init(void); diff --git a/src/gmputil.c b/src/gmputil.c index 7f65630d..bf472c65 100644 --- a/src/gmputil.c +++ b/src/gmputil.c @@ -197,13 +197,3 @@ int mpz_vfprintf(FILE *fp, const char *f, va_list args) return n; } #endif - -static void *gmp_xrealloc(void *ptr, size_t old_size, size_t new_size) -{ - return xrealloc(ptr, new_size); -} - -void gmp_init(void) -{ - mp_set_memory_functions(xmalloc, gmp_xrealloc, NULL); -} diff --git a/src/libnftables.c b/src/libnftables.c index 7d36577d..cedd710b 100644 --- a/src/libnftables.c +++ b/src/libnftables.c @@ -196,7 +196,6 @@ struct nft_ctx *nft_ctx_new(uint32_t flags) if (!init_once) { init_once = true; - gmp_init(); #ifdef HAVE_LIBXTABLES xt_init(); #endif |