X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fir%2Ftrace.c;h=a84279d2a260697f85e49a9fec6db0df161a7474;hb=830017b03f9cded62c199b077fb2e18935f8e2ee;hp=60f2a2c43984c9d98d97b4a49128d221a947e465;hpb=abd69417bcbf0c66afc5f94c2164397f8df7915f;p=babeltrace.git diff --git a/formats/ctf/ir/trace.c b/formats/ctf/ir/trace.c index 60f2a2c4..a84279d2 100644 --- a/formats/ctf/ir/trace.c +++ b/formats/ctf/ir/trace.c @@ -1037,7 +1037,7 @@ int bt_ctf_trace_set_packet_header_type(struct bt_ctf_trace *trace, /* packet_header_type must be a structure */ if (bt_ctf_field_type_get_type_id(packet_header_type) != - BT_CTF_TYPE_ID_STRUCT) { + CTF_TYPE_STRUCT) { ret = -1; goto end; }