Cleanup: liblttng-ust: change `int` flag to `bool`
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 13 Dec 2019 22:24:25 +0000 (17:24 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Feb 2020 17:13:25 +0000 (12:13 -0500)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I78b35b6b99afe8a84aba6c836df3bce8d2532760

liblttng-ust/lttng-events.c

index 9ee91ae355e442f7b06bcac54d82018ac1d637db..9b2d3c649ac1b695e8d1136af11e12797b5053bc 100644 (file)
@@ -744,7 +744,8 @@ void lttng_create_event_if_missing(struct lttng_enabler *enabler)
         */
        cds_list_for_each_entry(probe_desc, probe_list, head) {
                for (i = 0; i < probe_desc->nr_events; i++) {
-                       int found = 0, ret;
+                       int ret;
+                       bool found = false;
                        struct cds_hlist_head *head;
                        struct cds_hlist_node *node;
                        const char *event_name;
@@ -765,7 +766,7 @@ void lttng_create_event_if_missing(struct lttng_enabler *enabler)
                        cds_hlist_for_each_entry(event, node, head, hlist) {
                                if (event->desc == desc
                                                && event->chan == enabler->chan) {
-                                       found = 1;
+                                       found = true;
                                        break;
                                }
                        }
This page took 0.025689 seconds and 4 git commands to generate.