X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Flib%2Flttng-ctl%2Flttng-ctl-health.cpp;h=e3234d5d4e3ef75a70761ea20420cf500f356b8a;hp=fd6279ade1aaa49110924a7818987305e75e793b;hb=HEAD;hpb=cd9adb8b829564212158943a0d279bb35322ab30 diff --git a/src/lib/lttng-ctl/lttng-ctl-health.cpp b/src/lib/lttng-ctl/lttng-ctl-health.cpp index fd6279ade..c490f8993 100644 --- a/src/lib/lttng-ctl/lttng-ctl-health.cpp +++ b/src/lib/lttng-ctl/lttng-ctl-health.cpp @@ -14,6 +14,7 @@ #include "lttng-ctl-helper.hpp" #include +#include #include #include @@ -48,7 +49,7 @@ struct lttng_health { char health_sock_path[PATH_MAX]; /* For consumer health only */ enum lttng_health_consumerd consumerd_type; - struct lttng_health_thread thread[]; + struct lttng_health_thread thread[LTTNG_FLEXIBLE_ARRAY_MEMBER_LENGTH]; }; static const char *get_sessiond_thread_name(health_type_sessiond type)