summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2008-12-22 07:37:30 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2008-12-22 07:37:30 +0000
commit956b5e0ddbd0d4aefef58f9a512cae62bf46ae8e (patch)
tree47047e41ba1a62f720f36ff55bb5fba2740a0e58
parente43ba591f6346dad9033d19137a7fe94ab267b7f (diff)
downloadlibparserutils-956b5e0ddbd0d4aefef58f9a512cae62bf46ae8e.tar.gz
libparserutils-956b5e0ddbd0d4aefef58f9a512cae62bf46ae8e.tar.bz2
C89
svn path=/trunk/libparserutils/; revision=5920
-rw-r--r--src/utils/chunkarray.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/utils/chunkarray.c b/src/utils/chunkarray.c
index ef3fb60..fc2ab8b 100644
--- a/src/utils/chunkarray.c
+++ b/src/utils/chunkarray.c
@@ -197,8 +197,9 @@ void parserutils_chunkarray_dump(parserutils_chunkarray *array)
uint32_t n = 0;
size_t count = 0;
size_t total = sizeof(parserutils_chunkarray);
+ chunk *c;
- for (chunk *c = array->used_chunks; c != NULL; c = c->next) {
+ for (c = array->used_chunks; c != NULL; c = c->next) {
n++;
count += c->used;
if (c->used == CHUNK_SIZE)
@@ -212,7 +213,7 @@ void parserutils_chunkarray_dump(parserutils_chunkarray *array)
n = 0;
count = 0;
- for (chunk *c = array->free_chunks; c != NULL; c = c->next) {
+ for (c = array->free_chunks; c != NULL; c = c->next) {
n++;
count += c->used;
total += sizeof(chunk);