From: Francis Deslauriers Date: Fri, 13 Dec 2019 22:24:25 +0000 (-0500) Subject: Cleanup: liblttng-ust: change `int` flag to `bool` X-Git-Tag: v2.13.0-rc1~537 X-Git-Url: http://git.lttng.org/?p=lttng-ust.git;a=commitdiff_plain;h=98a97f249e4708f2a14c648962fc2b5423a55d77 Cleanup: liblttng-ust: change `int` flag to `bool` Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I78b35b6b99afe8a84aba6c836df3bce8d2532760 --- diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index 9ee91ae3..9b2d3c64 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -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; } }