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
/
fd-handle.cpp
diff --git
a/src/common/fd-handle.cpp
b/src/common/fd-handle.cpp
index 579757782702f175315254b3003b001e1355bbae..8a0d95243bcdfebf4035da2981ff13cbaed454d9 100644
(file)
--- a/
src/common/fd-handle.cpp
+++ b/
src/common/fd-handle.cpp
@@
-19,7
+19,7
@@
struct fd_handle {
static void fd_handle_release(struct urcu_ref *ref)
{
int ret;
static void fd_handle_release(struct urcu_ref *ref)
{
int ret;
- struct fd_handle *handle =
container_of(ref, struct fd_handle,
ref);
+ struct fd_handle *handle =
lttng::utils::container_of(ref, &fd_handle::
ref);
LTTNG_ASSERT(handle->fd >= 0);
ret = close(handle->fd);
LTTNG_ASSERT(handle->fd >= 0);
ret = close(handle->fd);
This page took
0.022927 seconds
and
4
git commands to generate.