X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror-query.c;h=7b0872d90407a7d59f3a8b50c9b99d2633dc3326;hb=e98672538b3b7522f04d452feb8f22eb45e0ec94;hp=38f47c224da98d67c45c28a9019dab19cfadfcb2;hpb=8ce7c93a4e83444a093f00aa7ed04c75233cd7a0;p=lttng-tools.git diff --git a/src/common/error-query.c b/src/common/error-query.c index 38f47c224..7b0872d90 100644 --- a/src/common/error-query.c +++ b/src/common/error-query.c @@ -745,7 +745,7 @@ int lttng_error_query_serialize(const struct lttng_error_query *query, struct lttng_payload *payload) { int ret; - struct lttng_error_query_comm header = { + const struct lttng_error_query_comm header = { .target_type = (typeof(header.target_type)) query->target_type, };