X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror-query.c;h=7b0872d90407a7d59f3a8b50c9b99d2633dc3326;hb=92ec606f84483d18b171b48057d73b7086799209;hp=38f47c224da98d67c45c28a9019dab19cfadfcb2;hpb=63dd3d7b5b0979c4b11a6bb8d0e4155120482977;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, };