/[svn]/ircd-hybrid/libio/mem/balloc.c
ViewVC logotype

Diff of /ircd-hybrid/libio/mem/balloc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 585 by michael, Wed Apr 5 09:34:28 2006 UTC revision 586 by michael, Mon May 8 11:06:32 2006 UTC
# Line 173  newblock(BlockHeap *bh) Line 173  newblock(BlockHeap *bh)
173      data = (void *)((size_t)offset + sizeof(MemBlock));      data = (void *)((size_t)offset + sizeof(MemBlock));
174    
175      dlinkAdd(data, &newblk->self, &b->free_list);      dlinkAdd(data, &newblk->self, &b->free_list);
176      offset = (unsigned char *)((unsigned char *)offset + bh->elemSize + sizeof(MemBlock));      offset = (void *)((size_t)offset + bh->elemSize + sizeof(MemBlock));
177    }    }
178    
179    ++bh->blocksAllocated;    ++bh->blocksAllocated;

Legend:
Removed from v.585  
changed lines
  Added in v.586

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28