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.
This commit is contained in:
Jason Evans 2010-10-07 08:52:32 -07:00
parent c6e950665c
commit 1506a1b903

View File

@ -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]);
}