diff options
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,7 @@ static json_t *set_print_json(struct output_ctx *octx, const struct set *set) if (set_is_datamap(set->flags)) { type = "map"; - datatype_ext = set->datatype->name; + datatype_ext = set->data->dtype->name; } else if (set_is_objmap(set->flags)) { type = "map"; datatype_ext = obj_type_name(set->objtype); @@ -645,7 +645,7 @@ json_t *map_expr_json(const struct expr *expr, struct output_ctx *octx) const char *type = "map"; if (expr->mappings->etype == EXPR_SET_REF && - expr->mappings->set->datatype->type == TYPE_VERDICT) + expr->mappings->set->data->dtype->type == TYPE_VERDICT) type = "vmap"; return json_pack("{s:{s:o, s:o}}", type, |