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;
rc = TR_CFG_ERROR;
}
- if (invalid_port(int_cfg->monitoring_port)) {
- tr_debug("tr_cfg_validate_internal: Error: invalid monitoring port (%d).", int_cfg->monitoring_port);
+ if (invalid_port(int_cfg->mons_port)) {
+ tr_debug("tr_cfg_validate_internal: Error: invalid monitoring port (%d).", int_cfg->mons_port);
rc = TR_CFG_ERROR;
}