From bbc84cabe8216cf7517fbceea6bae2c0d1b524f4 Mon Sep 17 00:00:00 2001 From: Juergen Beisert Date: Thu, 10 Dec 2009 13:09:02 +0100 Subject: 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 --- common/dlmalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common/dlmalloc.c') 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; -- cgit v1.2.3