X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=src%2Flib%2Fgraph%2Fgraph.h;h=71328fae1d42405749ffb8b6a5f9bffe4ccf8ca5;hb=91d8147391efdc4d42cc4e1c171a65c0372a008f;hp=c41d13162e91e03aee7cb1428480c1d1d07b7562;hpb=4e87f509dec8aed765d6b6b4c868be65b8580c37;p=babeltrace.git diff --git a/src/lib/graph/graph.h b/src/lib/graph/graph.h index c41d1316..71328fae 100644 --- a/src/lib/graph/graph.h +++ b/src/lib/graph/graph.h @@ -26,7 +26,7 @@ #include #include -#include "common/babeltrace.h" +#include "common/macros.h" #include "lib/object.h" #include "lib/object-pool.h" #include "common/assert.h" @@ -215,7 +215,7 @@ enum bt_graph_status bt_graph_configure(struct bt_graph *graph) BT_ASSERT(graph->config_state != BT_GRAPH_CONFIGURATION_STATE_FAULTY); - if (likely(graph->config_state == + if (G_LIKELY(graph->config_state == BT_GRAPH_CONFIGURATION_STATE_CONFIGURED)) { goto end; }