From: hno <> Date: Fri, 20 Jun 2003 01:53:15 +0000 (+0000) Subject: Bug: MemPool.c is C source, not C++. C does not allow variables to be X-Git-Tag: SQUID_3_0_PRE1~110 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6bb1cd29e418f46eced89e8a075063c169db19c;p=thirdparty%2Fsquid.git Bug: MemPool.c is C source, not C++. C does not allow variables to be declared in the middle of a block. --- diff --git a/lib/MemPool.c b/lib/MemPool.c index 92a908419a..f11a904a6c 100644 --- a/lib/MemPool.c +++ b/lib/MemPool.c @@ -1,6 +1,6 @@ /* - * $Id: MemPool.c,v 1.17 2003/06/19 13:12:00 robertc Exp $ + * $Id: MemPool.c,v 1.18 2003/06/19 19:53:15 hno Exp $ * * DEBUG: section 63 Low Level Memory Pool Management * AUTHOR: Alex Rousskov, Andres Kroonmaa @@ -577,10 +577,11 @@ memPoolConvertFreeCacheToChunkSpecific(MemPool * const pool) */ while ((Free = pool->freeCache) != NULL) { + MemChunk *chunk; lastPool = pool; pool->allChunks = splay_splay((const void **)&Free, pool->allChunks, memCompObjChunks); assert(splayLastResult == 0); - MemChunk *chunk = pool->allChunks->data; + chunk = pool->allChunks->data; assert(chunk->inuse_count > 0); chunk->inuse_count--; pool->freeCache = *(void **)Free; /* remove from global cache */