use create_local

This commit is contained in:
James McKaskill 2013-09-12 14:42:30 -04:00
parent ca1d07f657
commit 448021e7e1
3 changed files with 7 additions and 4 deletions

View file

@ -23,9 +23,14 @@ static struct capn_segment *create(void *u, uint32_t id, int sz) {
return s;
}
static struct capn_segment *create_local(void *u, int sz) {
return create(u, 0, sz);
}
void capn_init_malloc(struct capn *c) {
memset(c, 0, sizeof(*c));
c->create = &create;
c->create_local = &create_local;
}
void capn_free(struct capn *c) {