From 9478d2fba1ec00b88ae7c71999ca6795bba91981 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 10 Oct 2003 18:01:39 +0000 Subject: [PATCH] Export cfpool -- sometimes it's much convenient to pass just a pool than a pointer to an allocation function. --- lib/conf.c | 2 +- lib/conf.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/conf.c b/lib/conf.c index d2c08de2..7e4443be 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -25,7 +25,7 @@ #define MAX_LEVEL 8 static struct cfitem *cfsection; -static struct mempool *cfpool; +struct mempool *cfpool; byte *cfdeffile = DEFAULT_CONFIG; diff --git a/lib/conf.h b/lib/conf.h index 00746da5..f4ede669 100644 --- a/lib/conf.h +++ b/lib/conf.h @@ -16,6 +16,7 @@ * Allocation in configuration memory pool. */ +extern struct mempool *cfpool; void *cfg_malloc(uns size); byte *cfg_stralloc(byte *s); -- 2.39.2