python_logging = container_of(
rule, const struct lttng_event_rule_python_logging, parent);
- local_event = (lttng_event *) zmalloc(sizeof(*local_event));
+ local_event = zmalloc<lttng_event>();
if (!local_event) {
goto error;
}
struct lttng_event_rule_python_logging *tp_rule;
enum lttng_event_rule_status status;
- tp_rule = (lttng_event_rule_python_logging *) zmalloc(sizeof(struct lttng_event_rule_python_logging));
+ tp_rule = zmalloc<lttng_event_rule_python_logging>();
if (!tp_rule) {
goto end;
}