From: Simon Marchi Date: Mon, 9 Sep 2019 19:42:35 +0000 (-0400) Subject: lib: fix can_seek_beginning method type cast X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=867517794e3a3514589eb9b60fe252c65bd23269;p=babeltrace.git lib: fix can_seek_beginning method type cast Use the right type for the cast. It works right now because can_seek_beginning and seek_beginning have the same signature, but the can_seek_beginning signature is set to change very soon. Change-Id: I9b51c1bba43fecd1d857578d28cae5b5ff058059 Signed-off-by: Simon Marchi --- diff --git a/src/lib/graph/iterator.c b/src/lib/graph/iterator.c index 1030a465..81f7dd9d 100644 --- a/src/lib/graph/iterator.c +++ b/src/lib/graph/iterator.c @@ -435,7 +435,7 @@ int create_self_component_input_port_message_iterator( if (iterator->methods.seek_beginning && !iterator->methods.can_seek_beginning) { iterator->methods.can_seek_beginning = - (bt_self_component_port_input_message_iterator_seek_beginning_method) + (bt_self_component_port_input_message_iterator_can_seek_beginning_method) can_seek_beginning_true; }