Use json_is_true() in place of json_boolean_value() for compatibility
[trust_router.git] / common / tr_config_internal.c
index f6bd011..5b9aa8c 100644 (file)
@@ -60,7 +60,7 @@ static TR_CFG_RC tr_cfg_parse_boolean(json_t *src, const char *key, int *dest)
   jtmp = json_object_get(src, key);
   if (jtmp) {
     if (json_is_boolean(jtmp)) {
-      *dest = json_boolean_value(jtmp);
+      *dest = json_is_true(jtmp);
     } else {
       tr_debug("tr_cfg_parse_unsigned: Parsing error, %s is not a boolean.", key);
       return TR_CFG_NOPARSE;