From 1506a1b90341cf27415c01b271b56f82f682fd07 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Thu, 7 Oct 2010 08:52:32 -0700 Subject: [PATCH] Move variable declaration out of for loop header. Move a loop variable declaration out of for(usigned i = 0; ...) in order to avoid the need for C99 compilation. --- jemalloc/src/ctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jemalloc/src/ctl.c b/jemalloc/src/ctl.c index 76422599..edbbb209 100644 --- a/jemalloc/src/ctl.c +++ b/jemalloc/src/ctl.c @@ -1322,7 +1322,8 @@ arenas_purge_ctl(const size_t *mib, size_t miblen, void *oldp, size_t *oldlenp, malloc_mutex_unlock(&arenas_lock); if (arena == UINT_MAX) { - for (unsigned i = 0; i < narenas; i++) { + unsigned i; + for (i = 0; i < narenas; i++) { if (tarenas[i] != NULL) arena_purge_all(tarenas[i]); }