summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-07-10 08:06:34 -0300
committerpanikon <panikon@zoho.com>2014-07-10 08:06:34 -0300
commite98e18ff623ee1da999a04e8f4b7ae282453abd8 (patch)
tree51c722b51935fb79d49be605c49c0748c0fdfa92 /src/common
parent3c24fb656f3b3370b7152d6f1d2cc9dbc6fbae5d (diff)
downloadhercules-e98e18ff623ee1da999a04e8f4b7ae282453abd8.tar.gz
hercules-e98e18ff623ee1da999a04e8f4b7ae282453abd8.tar.bz2
hercules-e98e18ff623ee1da999a04e8f4b7ae282453abd8.tar.xz
hercules-e98e18ff623ee1da999a04e8f4b7ae282453abd8.zip
Follow up to 3c24fb656f3b3370b7152d6f1d2cc9dbc6fbae5d
Moved 'count' declaration in order to fit MSVC c89-c99 standard
Diffstat (limited to 'src/common')
-rw-r--r--src/common/malloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/malloc.c b/src/common/malloc.c
index f164c6660..fbe8e2d9d 100644
--- a/src/common/malloc.c
+++ b/src/common/malloc.c
@@ -642,12 +642,11 @@ static void memmgr_final (void)
struct block *block = block_first;
struct unit_head_large *large = unit_head_large_first;
char vcsinfo[256];
- snprintf(vcsinfo, sizeof(vcsinfo), "%s rev '%s'", sysinfo->vcstype(), sysinfo->vcsrevision_src()); // Cache VCS info before we free() it
- sysinfo->final();
-
#ifdef LOG_MEMMGR
int count = 0;
#endif /* LOG_MEMMGR */
+ snprintf(vcsinfo, sizeof(vcsinfo), "%s rev '%s'", sysinfo->vcstype(), sysinfo->vcsrevision_src()); // Cache VCS info before we free() it
+ sysinfo->final();
while (block) {
if (block->unit_used) {