summaryrefslogtreecommitdiff
path: root/src/config/conftree.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-13 17:02:23 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-13 17:02:23 +0000
commit5fa0059f75261c78e15ecd9990cd72f1ece4a5e4 (patch)
tree1d40443108801bef10b829b30aa843fcf626a461 /src/config/conftree.c
parentff9c276c144bc24c70f1d5b531a8fd412c34c3d9 (diff)
downloadtipidee-5fa0059f75261c78e15ecd9990cd72f1ece4a5e4.tar.xz
With fewer bugs
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/config/conftree.c')
-rw-r--r--src/config/conftree.c4
1 files changed, 1 insertions, 3 deletions
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)