projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add type-checked versions of allocation and deallocations functions
[lttng-tools.git]
/
src
/
common
/
event-rule
/
log4j-logging.cpp
diff --git
a/src/common/event-rule/log4j-logging.cpp
b/src/common/event-rule/log4j-logging.cpp
index 937331a36a315a533be2c161b7e571c2ed7023a8..b7386c0ba36f99743055efff6c0ff5a8b04d954e 100644
(file)
--- a/
src/common/event-rule/log4j-logging.cpp
+++ b/
src/common/event-rule/log4j-logging.cpp
@@
-421,7
+421,7
@@
static struct lttng_event *lttng_event_rule_log4j_logging_generate_lttng_event(
log4j_logging = container_of(
rule, const struct lttng_event_rule_log4j_logging, parent);
log4j_logging = container_of(
rule, const struct lttng_event_rule_log4j_logging, parent);
- local_event =
(lttng_event *) zmalloc(sizeof(*local_event)
);
+ local_event =
zmalloc<lttng_event>(
);
if (!local_event) {
goto error;
}
if (!local_event) {
goto error;
}
@@
-560,7
+560,7
@@
struct lttng_event_rule *lttng_event_rule_log4j_logging_create(void)
struct lttng_event_rule_log4j_logging *tp_rule;
enum lttng_event_rule_status status;
struct lttng_event_rule_log4j_logging *tp_rule;
enum lttng_event_rule_status status;
- tp_rule =
(lttng_event_rule_log4j_logging *) zmalloc(sizeof(struct lttng_event_rule_log4j_logging)
);
+ tp_rule =
zmalloc<lttng_event_rule_log4j_logging>(
);
if (!tp_rule) {
goto end;
}
if (!tp_rule) {
goto end;
}
This page took
0.023854 seconds
and
4
git commands to generate.