int lttng_event_serialize(const struct lttng_event *event,
unsigned int exclusion_count,
- const char **exclusion_list,
+ const char *const *exclusion_list,
const char *filter_expression,
size_t bytecode_len,
struct lttng_bytecode *bytecode,
* We do not care about the filter bytecode and the fd from the
* userspace_probe_location.
*/
- ret = lttng_event_serialize(
- tmp_event,
- exclusion_names.size(),
- exclusion_names.size() ?
- exclusion_names.data() :
- nullptr,
- uevent->filter_expression,
- 0,
- nullptr,
- reply_payload);
+ ret = lttng_event_serialize(tmp_event,
+ exclusion_names.size(),
+ exclusion_names.size() ? exclusion_names.data() :
+ nullptr,
+ uevent->filter_expression,
+ 0,
+ nullptr,
+ reply_payload);
lttng_event_destroy(tmp_event);
if (ret) {
ret_code = LTTNG_ERR_FATAL;
int lttng_event_serialize(const struct lttng_event *event,
unsigned int exclusion_count,
- const char **exclusion_list,
+ const char *const *exclusion_list,
const char *filter_expression,
size_t bytecode_len,
struct lttng_bytecode *bytecode,
serialize:
ret = lttng_event_serialize(ev,
exclusion_count,
- const_cast<const char **>(exclusion_list),
+ exclusion_list,
filter_expression,
bytecode_len,
(ctx && bytecode_len) ? &ctx->bytecode->b : nullptr,