Changeset 35b6eb9 for list.c


Ignore:
Timestamp:
Feb 11, 2011, 4:31:39 PM (11 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
ddbbcffa
Parents:
96828e4
git-author:
Anders Kaseorg <andersk@mit.edu> (08/27/09 00:52:03)
git-committer:
Anders Kaseorg <andersk@mit.edu> (02/11/11 16:31:39)
Message:
Replace owl_realloc with g_renew.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Karl Ramm <kcr@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • list.c

    r96828e4 r35b6eb9  
    2626  if ((l->size+n) > l->avail) {
    2727    int avail = MAX(l->avail * GROWBY, l->size + n);
    28     ptr = owl_realloc(l->list, avail * sizeof(void *));
     28    ptr = g_renew(void *, l->list, avail);
    2929    if (ptr==NULL) abort();
    3030    l->list=ptr;
Note: See TracChangeset for help on using the changeset viewer.