X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fctf-writer%2Ffields.c;fp=lib%2Fctf-writer%2Ffields.c;h=8d92cb6ab7e17d1eaafc009241fdc9e0ee470448;hb=5a547eb3b9071014445ad910e4715effd61a9973;hp=11baf31b76c4c7bf1ee3fc6cf90bec5947813c61;hpb=565b670655049139fda8833398bca7753a6ba29a;p=babeltrace.git diff --git a/lib/ctf-writer/fields.c b/lib/ctf-writer/fields.c index 11baf31b..8d92cb6a 100644 --- a/lib/ctf-writer/fields.c +++ b/lib/ctf-writer/fields.c @@ -623,12 +623,12 @@ int bt_ctf_field_sequence_set_length(struct bt_ctf_field *field, BT_ASSERT_PRE_NON_NULL(length_field, "Length field"); BT_ASSERT_PRE_FIELD_COMMON_IS_SET((void *) length_field, "Length field"); - BT_ASSERT_PRE(common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_INTEGER || - common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_ENUM, + BT_ASSERT_PRE(common_length_field->type->id == BT_FIELD_TYPE_ID_INTEGER || + common_length_field->type->id == BT_FIELD_TYPE_ID_ENUM, "Length field must be an integer or enumeration field: %!+wf", length_field); - if (common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_ENUM) { + if (common_length_field->type->id == BT_FIELD_TYPE_ID_ENUM) { struct bt_ctf_field_enumeration *enumeration = (void *) length_field;