diff options
author | Juergen Beisert <jbe@pengutronix.de> | 2009-12-10 13:09:02 +0100 |
---|---|---|
committer | Juergen Beisert <jbe@pengutronix.de> | 2009-12-10 13:09:02 +0100 |
commit | bbc84cabe8216cf7517fbceea6bae2c0d1b524f4 (patch) | |
tree | b8dbc4ad4bf882621d2a7bfcfaadf2e8dc2901e3 /common/dlmalloc.c | |
parent | c5d512eaa2933940af900454c616302d3ab3ac6b (diff) | |
download | barebox-bbc84cabe8216cf7517fbceea6bae2c0d1b524f4.tar.gz barebox-bbc84cabe8216cf7517fbceea6bae2c0d1b524f4.tar.xz |
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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/dlmalloc.c b/common/dlmalloc.c index e524204730..3f7a0970c8 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; |