X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fvalidation.c;h=8ea23a5bea0e5e98c82f2f7644f6ea4e82826c52;hb=830017b03f9cded62c199b077fb2e18935f8e2ee;hp=f3a2c71e1aa4b452d98ef3eb1344d1f07776cb7c;hpb=1c822dfb58d831ad298b704ecaea181c16d16f3f;p=babeltrace.git diff --git a/formats/ctf/ir/validation.c b/formats/ctf/ir/validation.c index f3a2c71e..8ea23a5b 100644 --- a/formats/ctf/ir/validation.c +++ b/formats/ctf/ir/validation.c @@ -190,15 +190,15 @@ static int field_type_contains_sequence_or_variant_ft(struct bt_ctf_field_type *type) { int ret = 0; - enum bt_ctf_type_id type_id = bt_ctf_field_type_get_type_id(type); + enum ctf_type_id type_id = bt_ctf_field_type_get_type_id(type); switch (type_id) { - case BT_CTF_TYPE_ID_SEQUENCE: - case BT_CTF_TYPE_ID_VARIANT: + case CTF_TYPE_SEQUENCE: + case CTF_TYPE_VARIANT: ret = 1; goto end; - case BT_CTF_TYPE_ID_ARRAY: - case BT_CTF_TYPE_ID_STRUCT: + case CTF_TYPE_ARRAY: + case CTF_TYPE_STRUCT: { int i; int field_count = bt_ctf_field_type_get_field_count(type);