summaryrefslogtreecommitdiffstats
path: root/common/dlmalloc.c
diff options
context:
space:
mode:
authorJuergen Beisert <jbe@pengutronix.de>2009-12-10 13:09:02 +0100
committerJuergen Beisert <jbe@pengutronix.de>2009-12-10 13:09:02 +0100
commitbbc84cabe8216cf7517fbceea6bae2c0d1b524f4 (patch)
treeb8dbc4ad4bf882621d2a7bfcfaadf2e8dc2901e3 /common/dlmalloc.c
parentc5d512eaa2933940af900454c616302d3ab3ac6b (diff)
downloadbarebox-bbc84cabe8216cf7517fbceea6bae2c0d1b524f4.tar.gz
Move variables to bss
There is no need to init variables with 0. So, move them to the bss and let the C runtime does this job for us. Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Diffstat (limited to 'common/dlmalloc.c')
-rw-r--r--common/dlmalloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c
index e524204..3f7a097 100644
--- a/common/dlmalloc.c
+++ b/common/dlmalloc.c
@@ -621,20 +621,20 @@ static unsigned long top_pad = DEFAULT_TOP_PAD;
static char* sbrk_base = (char*)(-1);
/* The maximum memory obtained from system via sbrk */
-static unsigned long max_sbrked_mem = 0;
+static unsigned long max_sbrked_mem;
/* The maximum via either sbrk or mmap */
-static unsigned long max_total_mem = 0;
+static unsigned long max_total_mem;
/* internal working copy of mallinfo */
-static struct mallinfo current_mallinfo = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
+static struct mallinfo current_mallinfo;
/* The total memory obtained from system via sbrk */
#define sbrked_mem (current_mallinfo.arena)
/* Tracking mmaps */
-static unsigned long mmapped_mem = 0;
+static unsigned long mmapped_mem;