From 7356408ca1554468c9d7b9840aaaee28b4341c8d Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Wed, 9 Sep 2020 11:59:36 +0200 Subject: [HICN-563] listener and connection tables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I88b85a61908d97bda1afb08d31c3bf10b4d9c5c5 Signed-off-by: Jordan Augé --- hicn-light/src/hicn/core/content_store.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hicn-light/src/hicn/core/content_store.c') diff --git a/hicn-light/src/hicn/core/content_store.c b/hicn-light/src/hicn/core/content_store.c index 7ed2bd838..77d40ace5 100644 --- a/hicn-light/src/hicn/core/content_store.c +++ b/hicn-light/src/hicn/core/content_store.c @@ -46,7 +46,7 @@ do { content_store_t * -content_store_create(content_store_type_t type, size_t max_elts) +_content_store_create(content_store_type_t type, size_t init_size, size_t max_size) { content_store_t * cs = malloc(sizeof(content_store_t)); if (!cs) @@ -56,7 +56,7 @@ content_store_create(content_store_type_t type, size_t max_elts) cs->type = type; // XXX TODO an entry = data + metadata specific to each policy - pool_init(cs->entries, max_elts); + pool_init(cs->entries, init_size); // data // options -- cgit 1.2.3-korg