X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=lib%2Fgraph%2Fmessage%2Fmessage-iterator-inactivity.c;fp=lib%2Fgraph%2Fmessage%2Fmessage-iterator-inactivity.c;h=0d1a2abaeeb01b28525c139e8ba636e7aecb7282;hp=26b863f482969cf9a07abaa3767ec0b013d92479;hb=0cbc2c3316814e4b4bf3fd3ba3b361b165949e95;hpb=2f16a6a228d0059349b8566979c9d579e7e271b3 diff --git a/lib/graph/message/message-iterator-inactivity.c b/lib/graph/message/message-iterator-inactivity.c index 26b863f4..0d1a2aba 100644 --- a/lib/graph/message/message-iterator-inactivity.c +++ b/lib/graph/message/message-iterator-inactivity.c @@ -93,15 +93,13 @@ end: return (void *) ret_msg; } -extern enum bt_clock_snapshot_state +extern const struct bt_clock_snapshot * bt_message_message_iterator_inactivity_borrow_default_clock_snapshot_const( - const bt_message *msg, const bt_clock_snapshot **snapshot) + const bt_message *msg) { struct bt_message_message_iterator_inactivity *inactivity = (void *) msg; BT_ASSERT_PRE_NON_NULL(msg, "Message"); - BT_ASSERT_PRE_NON_NULL(snapshot, "Clock snapshot (output)"); BT_ASSERT_PRE_MSG_IS_TYPE(msg, BT_MESSAGE_TYPE_MESSAGE_ITERATOR_INACTIVITY); - *snapshot = inactivity->default_cs; - return BT_CLOCK_SNAPSHOT_STATE_KNOWN; + return inactivity->default_cs; }