damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 2f8f18b846a577c0632af2ebf0a9a83d30bb09d9
parent 3a7cf4d08d080218e3fd10ce705bbe01cf0a6bd3
Author: William Casarin <jb55@jb55.com>
Date:   Thu, 14 Dec 2023 12:10:35 -0800

nostrdb/build: fix constness on config pointer in ingester thread

otherwise build fails

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnostrdb/nostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 };