Clean-up: mark lttng_error_query communication header as const
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Jun 2021 22:04:28 +0000 (18:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Jun 2021 17:02:27 +0000 (13:02 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I166ef90aee0d4d7da9ce1002cbbe2a35eea88757

src/common/error-query.c

index 38f47c224da98d67c45c28a9019dab19cfadfcb2..7b0872d90407a7d59f3a8b50c9b99d2633dc3326 100644 (file)
@@ -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,
        };
 
This page took 0.026295 seconds and 5 git commands to generate.