From 0ac1a1517b787a0e8b4388f9572afb3f95a4cce5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 17 Jan 2025 22:09:54 +0000 Subject: [PATCH] Clean-up: lttng-list: use bool for boolean value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I9daaf64c6c9b796a124903ec2d707c1fefe41b00 Signed-off-by: Jérémie Galarneau --- src/bin/lttng/commands/list.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/lttng/commands/list.cpp b/src/bin/lttng/commands/list.cpp index 40d24141a..cea3c6b27 100644 --- a/src/bin/lttng/commands/list.cpp +++ b/src/bin/lttng/commands/list.cpp @@ -2001,7 +2001,7 @@ end: static int mi_list_session(const char *session_name, struct lttng_session *sessions, int count) { int ret, i; - unsigned int session_found = 0; + bool session_found = false; if (session_name == nullptr) { ret = -LTTNG_ERR_SESS_NOT_FOUND; @@ -2014,7 +2014,7 @@ static int mi_list_session(const char *session_name, struct lttng_session *sessi * We need to leave it open to append other informations * like domain, channel, events etc. */ - session_found = 1; + session_found = true; ret = mi_lttng_session(the_writer, &sessions[i], 1); if (ret) { goto end; -- 2.39.5