Change-Id: I9daaf64c6c9b796a124903ec2d707c1fefe41b00
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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;
* 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;