lib: fix can_seek_beginning method type cast
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 9 Sep 2019 19:42:35 +0000 (15:42 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 9 Sep 2019 19:44:52 +0000 (15:44 -0400)
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 <simon.marchi@efficios.com>
src/lib/graph/iterator.c

index 1030a4651390ce1a6c176b7fc2077cc5601cfc59..81f7dd9d37a18451dfdcc0838048ec4b5e2ee5c6 100644 (file)
@@ -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;
        }
 
This page took 0.025166 seconds and 4 git commands to generate.