Changeset 1235 for pjproject/trunk/pjlib/src/pj/pool_caching.c
- Timestamp:
- Apr 30, 2007 9:03:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/pool_caching.c
r1019 r1235 86 86 /* Delete all pool in free list */ 87 87 for (i=0; i < PJ_CACHING_POOL_ARRAY_SIZE; ++i) { 88 pj_pool_t *pool = cp->free_list[i].next;88 pj_pool_t *pool = (pj_pool_t*) cp->free_list[i].next; 89 89 pj_pool_t *next; 90 90 for (; pool != (void*)&cp->free_list[i]; pool = next) { … … 96 96 97 97 /* Delete all pools in used list */ 98 pool = cp->used_list.next;98 pool = (pj_pool_t*) cp->used_list.next; 99 99 while (pool != (pj_pool_t*) &cp->used_list) { 100 100 pj_pool_t *next = pool->next; … … 165 165 } else { 166 166 /* Get one pool from the list. */ 167 pool = cp->free_list[idx].next;167 pool = (pj_pool_t*) cp->free_list[idx].next; 168 168 pj_list_erase(pool); 169 169 … … 258 258 cp->capacity, cp->max_capacity, cp->used_count)); 259 259 if (detail) { 260 pj_pool_t *pool = cp->used_list.next;260 pj_pool_t *pool = (pj_pool_t*) cp->used_list.next; 261 261 pj_uint32_t total_used = 0, total_capacity = 0; 262 262 PJ_LOG(3,("cachpool", " Dumping all active pools:"));
Note: See TracChangeset
for help on using the changeset viewer.