refactor pool_init -> pool_create

This commit is contained in:
2021-12-20 14:44:15 +01:00
parent 93ef9438b8
commit 118d7f8452
9 changed files with 49 additions and 18 deletions

View File

@@ -96,7 +96,7 @@ static struct list_head *read_moves()
static pool_t *pool;
move_t *move;
if (!(pool = pool_init("moves", 1024, sizeof (struct move))))
if (!(pool = pool_create("moves", 1024, sizeof (struct move))))
return NULL;
while ((len = getline(&buf, &alloc, stdin)) >= 0) {