X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.cpp;fp=src%2Fbin%2Flttng%2Fcommands%2Fdestroy.cpp;h=83e23ab757e23a715776fbc42461e990531a3888;hp=270cefffcbcc3688e045da692894e863c8accf60;hb=ff01a57416330247403e58bf4e28d4771a46ce35;hpb=2397268a583deb18a90ed2f76a95c6c6d46174f9 diff --git a/src/bin/lttng/commands/destroy.cpp b/src/bin/lttng/commands/destroy.cpp index 270cefffc..83e23ab75 100644 --- a/src/bin/lttng/commands/destroy.cpp +++ b/src/bin/lttng/commands/destroy.cpp @@ -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;