projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
common: replace container_of with a C++ safe implementation
[lttng-tools.git]
/
src
/
common
/
event-rule
/
event-rule.cpp
diff --git
a/src/common/event-rule/event-rule.cpp
b/src/common/event-rule/event-rule.cpp
index 8c1b81dbd3ee77e1594a3663da4007ccb72f9ca3..5139eed5a6dbc44daac914f703fc8ca127c1790c 100644
(file)
--- a/
src/common/event-rule/event-rule.cpp
+++ b/
src/common/event-rule/event-rule.cpp
@@
-65,7
+65,7
@@
enum lttng_domain_type lttng_event_rule_get_domain_type(
static void lttng_event_rule_release(struct urcu_ref *ref)
{
struct lttng_event_rule *event_rule =
static void lttng_event_rule_release(struct urcu_ref *ref)
{
struct lttng_event_rule *event_rule =
-
container_of(ref, typeof(*event_rule),
ref);
+
lttng::utils::container_of(ref, <tng_event_rule::
ref);
LTTNG_ASSERT(event_rule->destroy);
event_rule->destroy(event_rule);
LTTNG_ASSERT(event_rule->destroy);
event_rule->destroy(event_rule);
This page took
0.038033 seconds
and
4
git commands to generate.