From 9761650d1fe4f12172c79e2a732a6c1525741ccb Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 8 Oct 2001 10:20:25 +0000 Subject: [PATCH] o read_vg_t compiles --- lib/datastruct/hash.c | 4 ++-- lib/format1/format1.h | 2 +- lib/mm/pool.c | 4 ++-- old-tests/format1/read_vg_t.c | 4 +++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/datastruct/hash.c b/lib/datastruct/hash.c index ddb4b5e7d..a394e514a 100644 --- a/lib/datastruct/hash.c +++ b/lib/datastruct/hash.c @@ -68,7 +68,7 @@ static unsigned _hash(const char *str) return h; } -struct hash_table *create_hash_table(unsigned size_hint) +struct hash_table *hash_create(unsigned size_hint) { size_t len; unsigned new_size = 16u; @@ -100,7 +100,7 @@ struct hash_table *create_hash_table(unsigned size_hint) return 0; } -void destroy_hash_table(struct hash_table *t) +void hash_destroy(struct hash_table *t) { struct hash_node *c, *n; int i; diff --git a/lib/format1/format1.h b/lib/format1/format1.h index 2cfa4620c..78ade8d44 100644 --- a/lib/format1/format1.h +++ b/lib/format1/format1.h @@ -9,6 +9,6 @@ #include "metadata.h" -struct io_space *create_lvm_v1_format(struct dev_filter *filter); +struct io_space *create_lvm1_format(struct dev_filter *filter); #endif diff --git a/lib/mm/pool.c b/lib/mm/pool.c index 06dc82eba..11680c57e 100644 --- a/lib/mm/pool.c +++ b/lib/mm/pool.c @@ -30,7 +30,7 @@ struct chunk *_new_chunk(struct pool *p, size_t s); /* by default things come out aligned for doubles */ #define DEFAULT_ALIGNMENT __alignof__ (double) -struct pool *create_pool(size_t chunk_hint) +struct pool *pool_create(size_t chunk_hint) { size_t new_size = 1024; struct pool *p = dbg_malloc(sizeof(*p)); @@ -49,7 +49,7 @@ struct pool *create_pool(size_t chunk_hint) return p; } -void destroy_pool(struct pool *p) +void pool_destroy(struct pool *p) { struct chunk *c, *pr; dbg_free(p->spare_chunk); diff --git a/old-tests/format1/read_vg_t.c b/old-tests/format1/read_vg_t.c index cbe89c8af..4290df859 100644 --- a/old-tests/format1/read_vg_t.c +++ b/old-tests/format1/read_vg_t.c @@ -6,6 +6,8 @@ #include "log.h" #include "format1.h" +#include "dbg_malloc.h" + #include int main(int argc, char **argv) @@ -31,7 +33,7 @@ int main(int argc, char **argv) exit(1); } - ios = create_lvm_v1_format(NULL); + ios = create_lvm1_format(NULL); vg = ios->vg_read(ios, argv[1]); if (!vg) {