From 5fa0059f75261c78e15ecd9990cd72f1ece4a5e4 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 13 Oct 2023 17:02:23 +0000 Subject: With fewer bugs Signed-off-by: Laurent Bercot --- src/config/conftree.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/config/conftree.c') diff --git a/src/config/conftree.c b/src/config/conftree.c index 4eac28e..47bf4fb 100644 --- a/src/config/conftree.c +++ b/src/config/conftree.c @@ -34,7 +34,6 @@ static struct nodestore_s nodestore = \ .tree = AVLTREE_INIT(8, 3, 8, &confnode_dtok, &confnode_cmp, &nodestore.set) \ } ; - confnode const *conftree_search (char const *key) { uint32_t i ; @@ -64,14 +63,13 @@ void conftree_update (confnode const *node) static int confnode_write (uint32_t d, unsigned int h, void *data) { confnode *node = GENSETDYN_P(confnode, &nodestore.set, d) ; - cdbmaker *cm = data ; (void)h ; if ((g.storage.s[node->key] & ~0x20) == 'A') { g.storage.s[++node->data] |= '@' ; node->datalen-- ; } - return cdbmake_add(cm, g.storage.s + node->key, node->keylen, g.storage.s + node->data, node->datalen) ; + return cdbmake_add((cdbmaker *)data, g.storage.s + node->key, node->keylen, g.storage.s + node->data, node->datalen) ; } int conftree_write (cdbmaker *cm) -- cgit v1.3.1