]> git.lttng.org Git - lttng-tools.git/commitdiff
Clean-up: lttng-list: use bool for boolean value
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 17 Jan 2025 22:09:54 +0000 (22:09 +0000)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 17 Jan 2025 22:09:54 +0000 (22:09 +0000)
Change-Id: I9daaf64c6c9b796a124903ec2d707c1fefe41b00
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/commands/list.cpp

index 40d24141ae926b9825d1903a1ea62c9de9d1ff06..cea3c6b274d62efbafc9cd8d38f31b2f5aa87754 100644 (file)
@@ -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;
This page took 0.031427 seconds and 4 git commands to generate.