diff --git a/geojson.c b/geojson.c index d8e64838..69d6e67c 100644 --- a/geojson.c +++ b/geojson.c @@ -403,7 +403,7 @@ long long addpool(FILE *poolfile, long long *poolpos, char *s) { } *sp = malloc(sizeof(struct stringpool)); - (*sp)->s = strdup(s); // XXX really should be mapped from the pool itself + (*sp)->s = strdup(s); // XXX really should be mapped from the pool itself (*sp)->left = NULL; (*sp)->right = NULL; (*sp)->off = *poolpos; diff --git a/tile.cc b/tile.cc index 1cd06918..f01506aa 100644 --- a/tile.cc +++ b/tile.cc @@ -187,13 +187,13 @@ int coalindexcmp(const struct coalesce *c1, const struct coalesce *c2) { } struct pool_val *retrieve_string(char **f, struct pool *p, int type, char *stringpool) { - struct pool_val *ret; + struct pool_val *ret; long long off; - deserialize_long_long(f, &off); - ret = pool(p, stringpool + off, type); + deserialize_long_long(f, &off); + ret = pool(p, stringpool + off, type); - return ret; + return ret; } void decode_meta(char **meta, char *stringpool, struct pool *keys, struct pool *values, struct pool *file_keys, std::vector *intmeta, char *only) {