X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=lib%2Fgraph%2Fmessage%2Fevent.c;h=d8e2b8ce6fc0821fb6abdb14558ab0f6430a1cc8;hb=0cbc2c3316814e4b4bf3fd3ba3b361b165949e95;hp=33e423e1ed1e6da34449df8b20da3cd5e4211420;hpb=2f16a6a228d0059349b8566979c9d579e7e271b3;p=babeltrace.git diff --git a/lib/graph/message/event.c b/lib/graph/message/event.c index 33e423e1..d8e2b8ce 100644 --- a/lib/graph/message/event.c +++ b/lib/graph/message/event.c @@ -255,10 +255,9 @@ const struct bt_event *bt_message_event_borrow_event_const( return borrow_event((void *) message); } -enum bt_clock_snapshot_state +const struct bt_clock_snapshot * bt_message_event_borrow_default_clock_snapshot_const( - const struct bt_message *msg, - const struct bt_clock_snapshot **snapshot) + const struct bt_message *msg) { struct bt_message_event *event_msg = (void *) msg; struct bt_stream_class *stream_class; @@ -271,9 +270,7 @@ bt_message_event_borrow_default_clock_snapshot_const( BT_ASSERT_PRE(stream_class->default_clock_class, "Message's stream's class has no default clock class: " "%![msg-]+n, %![sc-]+S", msg, stream_class); - BT_ASSERT_PRE_NON_NULL(snapshot, "Clock snapshot (output)"); - *snapshot = event_msg->default_cs; - return BT_CLOCK_SNAPSHOT_STATE_KNOWN; + return event_msg->default_cs; } const bt_clock_class *