From 2f8f18b846a577c0632af2ebf0a9a83d30bb09d9 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 14 Dec 2023 12:10:35 -0800 Subject: [PATCH] nostrdb/build: fix constness on config pointer in ingester thread otherwise build fails Signed-off-by: William Casarin --- nostrdb/nostrdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nostrdb/nostrdb.c b/nostrdb/nostrdb.c index b6d0f439..8a8573f5 100644 --- a/nostrdb/nostrdb.c +++ b/nostrdb/nostrdb.c @@ -2932,7 +2932,7 @@ static int ndb_writer_init(struct ndb_writer *writer, struct ndb_lmdb *lmdb) // initialize the ingester queue and then spawn the thread static int ndb_ingester_init(struct ndb_ingester *ingester, struct ndb_writer *writer, - struct ndb_config *config) + const struct ndb_config *config) { int elem_size, num_elems; static struct ndb_ingester_msg quit_msg = { .type = NDB_INGEST_QUIT };