lemoncake

rbtree based memory allocator
git clone git://git.2f30.org/lemoncake
Log | Files | Refs | README | LICENSE

commit 07ababd20495678f216364753f59536c20adb0a6
parent dd3037569e4a8f8561872b2303862026a2631158
Author: sin <sin@2f30.org>
Date:   Sun,  4 Aug 2013 17:02:13 +0100

Rename dump_stats to dumpstats()

Diffstat:
Mlemoncake.c | 10++--------
1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/lemoncake.c b/lemoncake.c @@ -94,7 +94,7 @@ writelog(int fd, const char *fmt, ...) } static void -dump_stats(void) +dumpstats(void) { int fd; struct node *n; @@ -157,12 +157,6 @@ mmap_aligned(size_t align, size_t siz) return p; } -static void -lemoncake_dump(void) -{ - dump_stats(); -} - static int lemoncake_init(void) { @@ -172,7 +166,7 @@ lemoncake_init(void) return 0; p = getenv("LEMONCAKE_DEBUG"); if (p) - atexit(lemoncake_dump); + atexit(dumpstats); ctx.init = true; return 0; }