pre-c99 compilers will fail to build the cache since commit
48f81ec09
("MAJOR: cache: Delay cache entry delete in reserve_hot function") due
to an int declaration in the for loop. No backport is needed.
struct shared_context *shctx;
int ret_shctx;
int err_code = ERR_NONE;
+ int i;
list_for_each_entry_safe(cache_config, back, &caches_config, list) {
LIST_APPEND(&caches, &cache->list);
LIST_DELETE(&cache_config->list);
free(cache_config);
- for (int i = 0; i < CACHE_TREE_NUM; ++i) {
+ for (i = 0; i < CACHE_TREE_NUM; ++i) {
cache->trees[i].entries = EB_ROOT;
HA_RWLOCK_INIT(&cache->trees[i].lock);