X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fir%2Fevent.c;h=3988b168e432551488ae8dd678109d4f13a52b44;hp=a36779de1e3576a6682c4084cdae646c21728ba5;hb=61cf588beae752e5ddfc60b6b5310f769ac9e852;hpb=128e68e8230a4001c4dbab6dfdcdf986c7c45113 diff --git a/formats/ctf/ir/event.c b/formats/ctf/ir/event.c index a36779de..3988b168 100644 --- a/formats/ctf/ir/event.c +++ b/formats/ctf/ir/event.c @@ -1141,11 +1141,11 @@ int bt_ctf_event_populate_event_header(struct bt_ctf_event *event) timestamp_field_type); bt_put(timestamp_field_type); if (mapped_clock) { - uint64_t timestamp = bt_ctf_clock_get_time( - mapped_clock); + int64_t timestamp; + ret = bt_ctf_clock_get_time(mapped_clock, ×tamp); bt_put(mapped_clock); - if (timestamp == (uint64_t) -1ULL) { + if (ret) { goto end; }