X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ferror-query.cpp;h=8072b26bdcdcaef9f97c85f5c2b05339f3998736;hb=c10f9cdd994258358bb3766c2e92dab71e4ceef2;hp=5d369c9e07563bfdba794694b69b22e1c74bb9a0;hpb=f46376a14da2eb796690cb4e718e8b213839d6ea;p=lttng-tools.git diff --git a/src/common/error-query.cpp b/src/common/error-query.cpp index 5d369c9e0..8072b26bd 100644 --- a/src/common/error-query.cpp +++ b/src/common/error-query.cpp @@ -536,7 +536,7 @@ int lttng_error_query_results_serialize( const size_t result_count = lttng_dynamic_pointer_array_get_count( &results->results); const struct lttng_error_query_results_comm header = { - .count = (typeof(header.count)) result_count, + .count = (decltype(header.count)) result_count, }; /* Header. */ @@ -744,7 +744,7 @@ int lttng_error_query_serialize(const struct lttng_error_query *query, { int ret; const struct lttng_error_query_comm header = { - .target_type = (typeof(header.target_type)) query->target_type, + .target_type = (decltype(header.target_type)) query->target_type, }; ret = lttng_dynamic_buffer_append(