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) {