Source

fc-solve / fc-solve / source / alloc.c

Diff from to

fc-solve/source/alloc.c

     /* Allocate a new pack */
     if ((++allocator->num_packs) == allocator->max_num_packs)
     {
-        int i;
-
         allocator->packs = (char * *)SREALLOC(
             allocator->packs,
             allocator->max_num_packs += IA_STATE_PACKS_GROW_BY
         allocator->packs[allocator->num_packs-1] =
            SMALLOC(allocator->packs[allocator->num_packs-1], ALLOCED_SIZE);
 
-        for ( i = allocator->num_packs ; i < allocator->max_num_packs ; i++)
+        for (int i = allocator->num_packs ; i < allocator->max_num_packs ; i++)
         {
             allocator->packs[i] = NULL;
         }
 
 void fc_solve_compact_allocator_finish(fcs_compact_allocator_t * allocator)
 {
-    char * * curr_pack, * * packs_end;
-
-    packs_end = (curr_pack = allocator->packs) + allocator->max_num_packs;
+    char * * packs_end = (char * * curr_pack = allocator->packs) + allocator->max_num_packs;
 
     for ( ; curr_pack < packs_end ; curr_pack++)
     {