Ignore:
Timestamp:
Nov 6, 2005, 11:39:38 AM (18 years ago)
Author:
Sam Hocevar
Message:
  • debian patches
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/jmalloc.cpp

    r2 r4  
    169169  for (;f;f=f->next);               // scan through static big list
    170170
    171   int i,bit;
     171  int i,bit=1;
    172172  for (i=0;i<JM_SMALL_SIZE;i++)
    173173  {
     
    215215    {     
    216216      fprintf(fp,"*** Small Block size = %d ***\n",i);     
    217       unsigned long x=0,bit=1;
     217      unsigned long bit=1;
    218218      char *addr=((char *)(s+1));
    219219      for (int j=0;j<32;j++)
     
    252252    {     
    253253      fprintf(fp,"*** Small Block size = %d ***\n",i);     
    254       unsigned long x=0,bit=1;
     254      unsigned long bit=1;
    255255      char *addr=((char *)(s+1));
    256256      for (int j=0;j<32;j++)
     
    348348    } else
    349349    {
    350       int bit=1,i=0,offset=0;
     350      int bit=1,i=0;
    351351      char *addr=((char *)s)+sizeof(small_block);
    352352      while (1)        // we already know there is a bit free
     
    380380  s->size=-s->size;
    381381
    382   if (s->size-size>sizeof(memory_node)+4)  // is there enough space to split the block?
     382  if (s->size-size>(int)sizeof(memory_node)+4)  // is there enough space to split the block?
    383383  {   
    384384    memory_node *p=(memory_node *)((char *)s+sizeof(memory_node)+size);
     
    431431    } else
    432432    {
    433       int bit=1,i=0,offset=0;
     433      int bit=1,i=0;
    434434      char *addr=((char *)s)+sizeof(small_block);
    435435      while (1)        // we already know there is a bit free
     
    486486  s->size=-s->size;
    487487
    488   if (s->size-size>sizeof(memory_node)+4)  // is there enough space to split the block?
     488  if (s->size-size>(int)sizeof(memory_node)+4)  // is there enough space to split the block?
    489489  {
    490490    memory_node *p=s;    // store this position
     
    882882        char *reportpath;
    883883        reportpath = (char *)jmalloc( strlen( get_save_filename_prefix() ) + strlen( filename ), "reportpath" );
    884         sprintf( reportpath, "%s%s\0", get_save_filename_prefix(), filename );
     884        sprintf( reportpath, "%s%s", get_save_filename_prefix(), filename );
    885885
    886886        FILE *fp = fopen( reportpath, "wb" );
Note: See TracChangeset for help on using the changeset viewer.