fix new callback signature for jsonconf

This commit is contained in:
Enno Rehling 2021-02-21 00:37:31 +01:00
parent 43066b6720
commit e1d117754a

View file

@ -62,8 +62,8 @@ struct flags {
int result; 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; cJSON* entry = (cJSON*)json;
int i; int i;
for (i = 0; flags->names[i]; ++i) { for (i = 0; flags->names[i]; ++i) {