Stop duplicating pool initialization code

This commit is contained in:
Eric Fischer
2014-09-29 12:12:54 -07:00
parent 5ab7f89465
commit fabeb4588d
3 changed files with 14 additions and 29 deletions
+4 -17
View File
@@ -445,23 +445,10 @@ long long write_tile(struct index *start, struct index *end, char *metabase, uns
layer->set_extent(1 << detail);
struct pool keys;
keys.n = 0;
keys.vals = NULL;
keys.head = NULL;
keys.tail = NULL;
struct pool values;
values.n = 0;
values.vals = NULL;
values.head = NULL;
values.tail = NULL;
struct pool dup;
dup.n = 1;
dup.vals = NULL;
dup.head = NULL;
dup.tail = NULL;
struct pool keys, values, dup;
pool_init(&keys, 0);
pool_init(&values, 0);
pool_init(&dup, 1);
double interval = 1;
double seq = 0;