From: Martin Mares Date: Sat, 11 Feb 2012 19:09:24 +0000 (+0100) Subject: Config: CONFIG_UCW_FAKE_ELTPOOL X-Git-Tag: v5.0~50 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3bb92d7face43b9ffb8a32640965cc7423ec8819;p=libucw.git Config: CONFIG_UCW_FAKE_ELTPOOL Can be set by the user if needed, not referenced in any config scripts. --- diff --git a/ucw/eltpool.h b/ucw/eltpool.h index 1b70d440..24911fb5 100644 --- a/ucw/eltpool.h +++ b/ucw/eltpool.h @@ -81,7 +81,7 @@ void *ep_alloc_slow(struct eltpool *pool); /* Internal. Do not call directly. */ static inline void *ep_alloc(struct eltpool *pool) { pool->num_allocated++; -#ifdef CONFIG_FAKE_ELTPOOL +#ifdef CONFIG_UCW_FAKE_ELTPOOL return xmalloc(pool->elt_size); #else struct eltpool_free *elt; @@ -101,7 +101,7 @@ static inline void *ep_alloc(struct eltpool *pool) static inline void ep_free(struct eltpool *pool, void *p) { pool->num_allocated--; -#ifdef CONFIG_FAKE_ELTPOOL +#ifdef CONFIG_UCW_FAKE_ELTPOOL (void) pool; xfree(p); #else