ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/negcache.c
(Generate patch)

Comparing hopm/trunk/src/negcache.c (file contents):
Revision 5266 by michael, Thu Jan 1 18:49:40 2015 UTC vs.
Revision 5274 by michael, Thu Jan 1 20:00:33 2015 UTC

# Line 80 | Line 80 | void nc_init(struct cnode **head)
80        return;
81     }
82  
83 <   *head = MyMalloc(sizeof **head);
83 >   *head = xcalloc(sizeof **head);
84  
85     maxb = (sizeof((*head)->ip) * 8);
86     (*head)->ip = 0;
# Line 149 | Line 149 | static struct cnode *nc_insert(struct cn
149        x = GETBIT(ip, x->b) ? x->r : x->l;
150     }
151  
152 <   t = MyMalloc(sizeof *t);
152 >   t = xcalloc(sizeof *t);
153     t->ip = ip;
154     t->b = i;
155     t->l = GETBIT(ip, t->b) ? x : t;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines