summaryrefslogtreecommitdiff
path: root/mem.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2013-06-07 20:44:18 +0200
committerRichard Braun <rbraun@sceen.net>2013-06-07 20:44:18 +0200
commit4f0956ef7db4d57eb22818fb06ef267c0eb4f4c7 (patch)
tree100e207fb93045f447aafa1032148a33de16d384 /mem.c
parent0e0932c4b2eb43b71fe9a4ee9e002819cecf1f11 (diff)
Switch from CMake to GNU autotools
Diffstat (limited to 'mem.c')
-rw-r--r--mem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mem.c b/mem.c
index 45a4dd9..ce71be5 100644
--- a/mem.c
+++ b/mem.c
@@ -412,7 +412,7 @@ static void mem_cache_error(struct mem_cache *cache, void *buf, int error,
static void * mem_cache_alloc_from_slab(struct mem_cache *cache);
static void mem_cache_free_to_slab(struct mem_cache *cache, void *buf);
-#ifdef CONFIG_MEM_USE_PHYS
+#if CONFIG_MEM_USE_PHYS
#include "phys.h"
static void *
@@ -889,7 +889,7 @@ mem_cache_init(struct mem_cache *cache, const char *name,
struct mem_cpu_pool_type *cpu_pool_type;
size_t i, buf_size;
-#ifdef CONFIG_MEM_VERIFY
+#if CONFIG_MEM_VERIFY
cache->flags = MEM_CF_VERIFY;
#else
cache->flags = 0;
@@ -1577,7 +1577,7 @@ mem_gc(void *arg)
#if 0
mem_info();
-#ifdef CONFIG_MEM_USE_PHYS
+#if CONFIG_MEM_USE_PHYS
phys_info();
#endif /* CONFIG_MEM_USE_PHYS */
#endif
@@ -1616,7 +1616,7 @@ mem_setup(void)
*/
assert(sizeof(union mem_bufctl) <= MEM_ALIGN_MIN);
-#ifdef CONFIG_MEM_USE_PHYS
+#if CONFIG_MEM_USE_PHYS
phys_setup();
#endif /* CONFIG_MEM_USE_PHYS */