summaryrefslogtreecommitdiffstats
path: root/common/dlmalloc.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2008-06-03 13:30:38 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2008-06-03 13:30:38 +0200
commitaa2111e25726aea9cecd4c4dc58f295de73dfd33 (patch)
tree5d610a917c15db0e332ffc9c005e1ef96a4fe05a /common/dlmalloc.c
parentcd75dd3647674c58014e51c179601c2830f66c18 (diff)
downloadbarebox-aa2111e25726aea9cecd4c4dc58f295de73dfd33.tar.gz
fix warnings in malloc code introduced by last commits
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r--common/dlmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index 73da4e4..7243f01 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -1933,7 +1933,7 @@ static void malloc_update_mallinfo(void)
int i;
mbinptr b;
mchunkptr p;
-#if DEBUG
+#ifdef DEBUG
mchunkptr q;
#endif
@@ -1945,7 +1945,7 @@ static void malloc_update_mallinfo(void)
b = bin_at(i);
for (p = last(b); p != b; p = p->bk)
{
-#if DEBUG
+#ifdef DEBUG
check_free_chunk(p);
for (q = next_chunk(p);
q < top && inuse(q) && (long)(chunksize(q)) >= (long)MINSIZE;