~kalebral-deactivatedaccount/drizzle/change-error_num_to_enum-2

« back to all changes in this revision

Viewing changes to plugin/heap/hp_dspace.cc

  • Committer: Brian Aker
  • Date: 2010-08-13 18:47:31 UTC
  • mfrom: (1707.1.7 rollup)
  • Revision ID: brian@tangent.org-20100813184731-w2iu1wzs219nqmt6
Style fixes/etc in heap.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
static unsigned char *hp_allocate_variable_chunkset(HP_DATASPACE *info,
195
195
                                           uint32_t chunk_count, unsigned char* existing_set)
196
196
{
197
 
  int alloc_count= chunk_count, i;
 
197
  int alloc_count= chunk_count;
198
198
  unsigned char *first_chunk= 0, *curr_chunk= 0, *prev_chunk= 0, *last_existing_chunk= 0;
199
199
 
200
200
  assert(alloc_count);
228
228
 
229
229
  /* We can reach this point only if we're allocating new chunkset or more chunks in existing set */
230
230
 
231
 
  for (i=0; i<alloc_count; i++)
 
231
  for (int i= 0; i<alloc_count; i++)
232
232
  {
233
233
      curr_chunk= hp_allocate_one_chunk(info);
234
234
      if (!curr_chunk)