From e1d117754ac4a05c269c2a3e684e01b8adaf16c5 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 21 Feb 2021 00:37:31 +0100 Subject: [PATCH] fix new callback signature for jsonconf --- src/jsonconf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jsonconf.c b/src/jsonconf.c index 016f6c1c2..42d61c7da 100644 --- a/src/jsonconf.c +++ b/src/jsonconf.c @@ -62,8 +62,8 @@ struct flags { int result; }; -static void cb_flags(void* json, struct flags* flags) -{ +static void cb_flags(void* json, void *udata) { + struct flags *flags = (struct flags *)udata; cJSON* entry = (cJSON*)json; int i; for (i = 0; flags->names[i]; ++i) {