diff options
author | Ruediger Pluem <rpluem@apache.org> | 2013-06-27 10:34:14 +0200 |
---|---|---|
committer | Ruediger Pluem <rpluem@apache.org> | 2013-06-27 10:34:14 +0200 |
commit | 8f967919393686b540d7c4905e41a4961e2cdc1f (patch) | |
tree | 0e46f969d4999c5678af7c815b473859c5ddef89 /server | |
parent | recognize the "defualt handler name" in r->handler, which is used when (diff) | |
download | apache2-8f967919393686b540d7c4905e41a4961e2cdc1f.tar.xz apache2-8f967919393686b540d7c4905e41a4961e2cdc1f.zip |
* Make code C89 compatible again
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1497239 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/skiplist.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/server/skiplist.c b/server/skiplist.c index 7da4b22ad6..a02085f9cf 100644 --- a/server/skiplist.c +++ b/server/skiplist.c @@ -83,13 +83,15 @@ AP_DECLARE(void *) ap_skiplist_alloc(ap_skiplist *sl, size_t size) if (sl->pool) { void *ptr; int found_size = 0; + int i; chunk_t *newchunk; memlist_t *memlist = (memlist_t *)sl->memlist->elts; - for (int i = 0; i < sl->memlist->nelts; i++) { + for (i = 0; i < sl->memlist->nelts; i++) { if (memlist->size == size) { + int j; chunk_t *chunk = (chunk_t *)memlist->list->elts; found_size = 1; - for (int j = 0; j < memlist->list->nelts; j++) { + for (j = 0; j < memlist->list->nelts; j++) { if (!chunk->inuse) { chunk->inuse = 1; return chunk->ptr; @@ -130,10 +132,12 @@ AP_DECLARE(void) ap_skiplist_free(ap_skiplist *sl, void *mem) free(mem); } else { + int i; memlist_t *memlist = (memlist_t *)sl->memlist->elts; - for (int i = 0; i < sl->memlist->nelts; i++) { + for (i = 0; i < sl->memlist->nelts; i++) { + int j; chunk_t *chunk = (chunk_t *)memlist->list->elts; - for (int j = 0; j < memlist->list->nelts; j++) { + for (j = 0; j < memlist->list->nelts; j++) { if (chunk->ptr == mem) { chunk->inuse = 0; return; |