Clean-up: replace uses of `int found` as bool by `bool found`
[lttng-tools.git] / src / bin / lttng / commands / destroy.cpp
index 270cefffcbcc3688e045da692894e863c8accf60..83e23ab757e23a715776fbc42461e990531a3888 100644 (file)
@@ -269,7 +269,7 @@ int cmd_destroy(int argc, const char **argv)
 
        struct lttng_session *sessions = nullptr;
        int count;
-       int found;
+       bool found;
 
        pc = poptGetContext(nullptr, argc, argv, long_options, 0);
        poptReadDefaultConfig(pc, 0);
@@ -354,10 +354,10 @@ int cmd_destroy(int argc, const char **argv)
                }
 
                /* Find the corresponding lttng_session struct */
-               found = 0;
+               found = false;
                for (i = 0; i < count; i++) {
                        if (strncmp(sessions[i].name, session_name, NAME_MAX) == 0) {
-                               found = 1;
+                               found = true;
                                command_ret = destroy_session(&sessions[i]);
                                if (command_ret) {
                                        success = 0;
This page took 0.024062 seconds and 4 git commands to generate.